Skip to content

Commit

Permalink
fix: hardcode VITE_SYNC_URL param until all env var loading works
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Nov 13, 2024
1 parent 5509516 commit f6bc453
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/image_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,12 @@ jobs:
tags: ${{ inputs.image_tags || steps.meta.outputs.tags }}
# TODO fix to allow passing all env vars and secrets (currently hardcoded)
# vars_and_secrets correctly loads to `env.` context, but
# passing into build-args doesn't work
# passing into extra_build_args as build-args doesn't work
build-args: |
APP_VERSION=${{ github.ref_name }}
COMMIT_REF=${{ github.sha }}
VITE_API_URL=${{ vars.VITE_API_URL }}
VITE_SYNC_URL=${{ vars.VITE_SYNC_URL }}
NODE_ENV=${{ vars.NODE_ENV || 'production' }}
MONITORING=${{ vars.MONITORING }}
${{ inputs.extra_build_args }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/image_build_multi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,12 @@ jobs:
tags: ${{ inputs.image_tags || steps.meta.outputs.tags }}
# TODO fix to allow passing all env vars and secrets (currently hardcoded)
# vars_and_secrets correctly loads to `env.` context, but
# passing into build-args doesn't work
# passing into extra_build_args as build-args doesn't work
build-args: |
APP_VERSION=${{ github.ref_name }}
COMMIT_REF=${{ github.sha }}
VITE_API_URL=${{ vars.VITE_API_URL }}
VITE_SYNC_URL=${{ vars.VITE_SYNC_URL }}
NODE_ENV=${{ vars.NODE_ENV || 'production' }}
MONITORING=${{ vars.MONITORING }}
${{ inputs.extra_build_args }}
Expand Down

0 comments on commit f6bc453

Please sign in to comment.