Skip to content

Commit

Permalink
ci: also tag with git commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Clerkx committed Nov 21, 2023
1 parent 5659095 commit 20599d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tag-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ jobs:
- name: Tag existing container image
if: ${{ steps.check_image.outputs.image_exists == 'true' }}
run: |
docker buildx imagetools create ${{ env.FULL_BUILT_IMAGE_NAME }} --tag ${{ env.FULL_IMAGE_TO_PUSH_W_TAG }}:${{ env.TAG_TO_PUSH }}
docker buildx imagetools create ${{ env.FULL_BUILT_IMAGE_NAME }} --tag ${{ env.FULL_IMAGE_TO_PUSH_W_TAG }}:${{ env.BUILT_IMAGE_TAG }} --tag ${{ env.FULL_IMAGE_TO_PUSH }}
- name: Build and Push image to ACR
if: ${{ steps.check_image.outputs.image_exists == 'false' }}
run: |
docker buildx build --platform linux/amd64 --tag ${{ env.FULL_BUILT_IMAGE_NAME }} --tag ${{ env.FULL_IMAGE_TO_PUSH_W_TAG }}:${{ env.TAG_TO_PUSH }} --push .
docker buildx build --platform linux/amd64 --tag ${{ env.FULL_IMAGE_TO_PUSH_W_TAG }}:${{ env.BUILT_IMAGE_TAG }} --tag ${{ env.FULL_IMAGE_TO_PUSH }} --push .

0 comments on commit 20599d8

Please sign in to comment.