test
This commit is contained in:
@@ -49,7 +49,6 @@ jobs:
|
|||||||
tags: ${{ github.ref_name }}
|
tags: ${{ github.ref_name }}
|
||||||
context: ./containers/fedora
|
context: ./containers/fedora
|
||||||
containerfiles: ./containers/fedora/Containerfile
|
containerfiles: ./containers/fedora/Containerfile
|
||||||
oci: true
|
|
||||||
- name: Push
|
- name: Push
|
||||||
uses: redhat-actions/push-to-registry@v2
|
uses: redhat-actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
@@ -70,13 +69,12 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
container: [infra, go]
|
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:
|
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
|
- name: Clone repo
|
||||||
if: steps.check.outputs.run == 'true'
|
if: steps.check.outputs.run == 'true'
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -97,7 +95,6 @@ jobs:
|
|||||||
context: ./containers/${{ matrix.container }}
|
context: ./containers/${{ matrix.container }}
|
||||||
containerfiles: ./containers/${{ matrix.container }}/Containerfile
|
containerfiles: ./containers/${{ matrix.container }}/Containerfile
|
||||||
build-args: TAG=${{ github.ref_name }}
|
build-args: TAG=${{ github.ref_name }}
|
||||||
oci: true
|
|
||||||
- name: Push
|
- name: Push
|
||||||
if: steps.check.outputs.run == 'true'
|
if: steps.check.outputs.run == 'true'
|
||||||
uses: redhat-actions/push-to-registry@v2
|
uses: redhat-actions/push-to-registry@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user