Skip to content

Commit 7c225cb

Browse files
authored
Merge pull request #413 from ryan-steed-usa/forked-release-workflow
build: add support to override docker-bake.hcl variables with GitHub Action Environment Variables
2 parents 85866a9 + beccf7e commit 7c225cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ jobs:
3333
env:
3434
DOCKER_BUILDKIT: 1
3535
BUILDKIT_STEP_LOG_MAX_SIZE: 10485760
36-
# This environment variable will override the VERSION variable in docker-bake.hcl
36+
# These environment variables will override the defaults within docker-bake.hcl
3737
VERSION: ${{ needs.prepare-release.outputs.version_tag }} # Use tag version (vX.Y.Z) for bake
38+
REGISTRY: ${{ vars.REGISTRY || 'ghcr.io' }} # Override with GitHub Action Environment Variable
39+
OWNER: ${{ vars.OWNER || 'remsky' }}
40+
REPO: ${{ vars.REPO || 'kokoro-fastapi' }}
3841
steps:
3942
- name: Checkout repository
4043
uses: actions/checkout@v4

0 commit comments

Comments
 (0)