test
All checks were successful
Build containers / changes (push) Successful in 2s
Build containers / base-image (push) Successful in 1m4s
Build containers / dependent-images (go) (push) Successful in 1s
Build containers / dependent-images (infra) (push) Successful in 1s

This commit is contained in:
Job
2025-12-29 11:48:35 +01:00
parent 678b8bee6e
commit 7d131fc347

View File

@@ -49,7 +49,6 @@ jobs:
tags: ${{ github.ref_name }}
context: ./containers/fedora
containerfiles: ./containers/fedora/Containerfile
oci: true
- name: Push
uses: redhat-actions/push-to-registry@v2
with:
@@ -70,13 +69,12 @@ jobs:
fail-fast: false
matrix:
container: [infra, go]
exclude:
- container: infra
if: ${{ needs.changes.outputs.infra != 'true' && needs.changes.outputs.any_change != 'true' }}
- container: go
if: ${{ needs.changes.outputs.go != 'true' && needs.changes.outputs.any_change != 'true' }}
steps:
- name: Check if build needed
id: check
run: |
if [[ "${{ matrix.container }}" == "infra" && "${{ needs.changes.outputs.infra }}" == "true" ]]; then echo "run=true" >> $GITHUB_OUTPUT; fi
if [[ "${{ matrix.container }}" == "go" && "${{ needs.changes.outputs.go }}" == "true" ]]; then echo "run=true" >> $GITHUB_OUTPUT; fi
if [[ "${{ needs.changes.outputs.any_change }}" == "true" ]]; then echo "run=true" >> $GITHUB_OUTPUT; fi
- name: Clone repo
if: steps.check.outputs.run == 'true'
uses: actions/checkout@v4
@@ -97,7 +95,6 @@ jobs:
context: ./containers/${{ matrix.container }}
containerfiles: ./containers/${{ matrix.container }}/Containerfile
build-args: TAG=${{ github.ref_name }}
oci: true
- name: Push
if: steps.check.outputs.run == 'true'
uses: redhat-actions/push-to-registry@v2