forked from Job79/devcontainer
feat: add php container
This commit is contained in:
@@ -17,6 +17,7 @@ jobs:
|
||||
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' }}
|
||||
any_change: ${{ steps.filter.outputs.workflow == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'}}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -28,6 +29,7 @@ jobs:
|
||||
fedora: ['containers/fedora/**']
|
||||
infra: ['containers/infra/**']
|
||||
go: ['containers/go/**']
|
||||
phhp: ['containers/php/**']
|
||||
|
||||
base-image:
|
||||
needs: [changes]
|
||||
@@ -68,13 +70,14 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
container: [infra, go]
|
||||
container: [infra, go, php]
|
||||
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 [[ "${{ matrix.container }}" == "php" && "${{ needs.changes.outputs.php }}" == "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'
|
||||
|
||||
Reference in New Issue
Block a user