Skip to content

Commit

Permalink
igniter in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Feb 14, 2025
1 parent 89e3dce commit 1df5400
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ jobs:
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# RELEASE_PATH: _build/prod/rel
# CI: 1
# CI: true

# elixir_release_extra_architectures:
# # The host should always be linux
Expand Down
5 changes: 3 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ FLAVOUR := env_var_or_default('FLAVOUR', "ember")
WITH_DOCKER := env_var_or_default('WITH_DOCKER', "total")

MIX_ENV := env_var_or_default('MIX_ENV', "dev")
CI := env_var_or_default('CI', "false")

APP_NAME := "bonfire"

Expand Down Expand Up @@ -118,7 +119,7 @@ setup:
-cat {{from}}/templates/public.env {{from}}/templates/not_secret.env > {{to}}/$ENV_ENV/.env && echo "MIX_ENV=$MIX_ENV" >> {{to}}/$ENV_ENV/.env

@_flavour_install select_flavour:
just mix {{select_flavour}}.install
{{ if CI == "true" { "just mix "+select_flavour+".install --yes" } else { "just mix "+select_flavour+".install" } }}

config_make_symlinks flavour='ember':
just _ln-from-dep ember config/ "*" config/
Expand Down Expand Up @@ -798,7 +799,7 @@ _rel-release-OTP USE_EXT="local" ARGS="":

rel-mix USE_EXT="local" ARGS="":
@echo {{ ARGS }}
@MIX_ENV=prod CI=1 just {{ if USE_EXT=="remote" {"mix-remote"} else {"mix"} }} {{ ARGS }}
@MIX_ENV=prod CI=true just {{ if USE_EXT=="remote" {"mix-remote"} else {"mix"} }} {{ ARGS }}

# Build the Docker image
@rel-build-docker USE_EXT="local" ARGS="": _rel-init _rel-prepare assets-prepare
Expand Down

0 comments on commit 1df5400

Please sign in to comment.