Skip to content

Commit

Permalink
Tag image with hash instead of next
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Nov 29, 2024
1 parent e5960bb commit 798fba9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
with:
file: Dockerfile
platforms: linux/amd64,linux/ppc64le,linux/arm64
tags: quay.io/eclipse/che-tls-secret-creator:next
tags: quay.io/eclipse/che-tls-secret-creator:pr-check
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ jobs:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
registry: quay.io
- name: Check existing tags
run: COMMIT_HASH=$(git rev-parse --short HEAD)
- name: Build images
uses: docker/build-push-action@v3
with:
file: Dockerfile
platforms: linux/amd64,linux/ppc64le,linux/arm64
tags: quay.io/eclipse/che-tls-secret-creator:next
tags: quay.io/eclipse/che-tls-secret-creator:${COMMIT_HASH}
push: true

0 comments on commit 798fba9

Please sign in to comment.