Skip to content

Commit b1fa712

Browse files
authored
Use SHORT_SHA variable for Docker tag
1 parent cfb5503 commit b1fa712

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-and-push.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ jobs:
9797

9898
- name: Build & Push
9999
run: |
100+
SHORT_SHA=${GITHUB_SHA:0:7}
100101
docker buildx build \
101102
--platform linux/amd64,linux/arm64 \
102103
-f docker/Dockerfile.CI \
103104
-t public.ecr.aws/umcai/xc2f/payload:latest \
104-
-t public.ecr.aws/umcai/xc2f/payload:${{ github.sha.substr(0, 7) }} \
105+
-t public.ecr.aws/umcai/xc2f/payload:$SHORT_SHA \
105106
--push \
106107
.

0 commit comments

Comments
 (0)