From 7d131fc3475dc930fbd3ddcc12fffebfb025b59c Mon Sep 17 00:00:00 2001 From: Job79 Date: Mon, 29 Dec 2025 11:48:35 +0100 Subject: [PATCH] test --- .gitea/workflows/build.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 311bea9..b1b8a2e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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