Skip to content

Commit 523423e

Browse files
committed
refactor(workflows): use environment variable for Docker image tags
1 parent 367c621 commit 523423e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docker_build_deploy_v2.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,15 @@ jobs:
6868

6969
- name: Build and push Docker image to GAR
7070
id: build-and-push
71+
env:
72+
TAGS: ${{ steps.meta.outputs.tags }}
7173
uses: docker/build-push-action@v6
7274
with:
7375
context: .
7476
# Push is true to push to GAR after build
7577
push: true
7678
# Tags generated by the metadata action (only GAR tag)
77-
tags: ${{ steps.meta.outputs.tags }}
79+
tags: ${{ env.TAGS }}
7880
# Pass build arguments
7981
build-args: |
8082
SENTRY_RELEASE=${{ github.sha }} # Use full SHA for Sentry release clarity

0 commit comments

Comments
 (0)