Append github sha to image tag.

This commit is contained in:
2024-08-28 10:47:37 +12:00
parent 14761a63ca
commit 12e26873b2

View File

@ -18,7 +18,7 @@ jobs:
uses: redhat-actions/buildah-build@v2 uses: redhat-actions/buildah-build@v2
with: with:
image: quay.io/rh_ee_jablair/ubi9 image: quay.io/rh_ee_jablair/ubi9
tags: v0.0.1 tags: v0.0.1-${{ github.sha }}
containerfiles: | containerfiles: |
./2024-08-28-rhacs-actions-pipeline/Containerfile ./2024-08-28-rhacs-actions-pipeline/Containerfile
@ -26,7 +26,7 @@ jobs:
uses: redhat-actions/push-to-registry@v2 uses: redhat-actions/push-to-registry@v2
with: with:
image: ubi9 image: ubi9
tags: v0.0.1 tags: v0.0.1-${{ github.sha }}
registry: quay.io/rh_ee_jablair registry: quay.io/rh_ee_jablair
username: ${{ secrets.QUAY_USERNAME }} username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }} password: ${{ secrets.QUAY_PASSWORD }}
@ -55,4 +55,4 @@ jobs:
- name: Scan image with roxctl - name: Scan image with roxctl
shell: bash shell: bash
run: | run: |
roxctl image scan --output=table --image="quay.io/rh_ee_jablair/ubi9:v0.0.1" --insecure-skip-tls-verify roxctl image scan --output=table --image="quay.io/rh_ee_jablair/ubi9:v0.0.1-${{ github.sha }}" --insecure-skip-tls-verify