test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user