Append github sha to image tag.
This commit is contained in:
6
.github/workflows/manual-rhacs-pipeline.yaml
vendored
6
.github/workflows/manual-rhacs-pipeline.yaml
vendored
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user