|
|
|
|
@@ -14,10 +14,10 @@ jobs:
|
|
|
|
|
changes:
|
|
|
|
|
runs-on: job-v2
|
|
|
|
|
outputs:
|
|
|
|
|
fedora: ${{ steps.filter.outputs.fedora == 'true' }}
|
|
|
|
|
infra: ${{ steps.filter.outputs.infra == 'true' || steps.filter.outputs.fedora == 'true' }}
|
|
|
|
|
go: ${{ steps.filter.outputs.go == 'true' || steps.filter.outputs.fedora == 'true' }}
|
|
|
|
|
php: ${{ steps.filter.outputs.php == 'true' || steps.filter.outputs.fedora == 'true' }}
|
|
|
|
|
base: ${{ steps.filter.outputs.base == 'true' }}
|
|
|
|
|
infra: ${{ steps.filter.outputs.infra == 'true' || steps.filter.outputs.base == 'true' }}
|
|
|
|
|
go: ${{ steps.filter.outputs.go == 'true' || steps.filter.outputs.base == 'true' }}
|
|
|
|
|
php: ${{ steps.filter.outputs.php == 'true' || steps.filter.outputs.base == 'true' }}
|
|
|
|
|
any_change: ${{ steps.filter.outputs.workflow == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'}}
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
@@ -26,14 +26,14 @@ jobs:
|
|
|
|
|
with:
|
|
|
|
|
filters: |
|
|
|
|
|
workflow: ['.gitea/workflows/build.yaml']
|
|
|
|
|
fedora: ['containers/fedora/**']
|
|
|
|
|
base: ['containers/base/**']
|
|
|
|
|
infra: ['containers/infra/**']
|
|
|
|
|
go: ['containers/go/**']
|
|
|
|
|
php: ['containers/php/**']
|
|
|
|
|
|
|
|
|
|
base-image:
|
|
|
|
|
needs: [changes]
|
|
|
|
|
if: ${{ needs.changes.outputs.fedora == 'true' || needs.changes.outputs.any_change == 'true' }}
|
|
|
|
|
if: ${{ needs.changes.outputs.base == 'true' || needs.changes.outputs.any_change == 'true' }}
|
|
|
|
|
runs-on: job-v2
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
@@ -47,10 +47,10 @@ jobs:
|
|
|
|
|
id: build
|
|
|
|
|
uses: job79/buildah-build@65b3793a1370c1ccd74a5c0d090d70eb9637a4ef
|
|
|
|
|
with:
|
|
|
|
|
image: job79/fedora
|
|
|
|
|
image: job79/base
|
|
|
|
|
tags: ${{ github.ref_name }}
|
|
|
|
|
context: ./containers/fedora
|
|
|
|
|
containerfiles: ./containers/fedora/Containerfile
|
|
|
|
|
context: ./containers/base
|
|
|
|
|
containerfiles: ./containers/base/Containerfile
|
|
|
|
|
platforms: linux/amd64
|
|
|
|
|
- name: Push
|
|
|
|
|
uses: redhat-actions/push-to-registry@v2
|
|
|
|
|
|