|
1 | 1 | name: PHP Docker Build Pipeline |
2 | 2 |
|
3 | 3 | on: |
4 | | - schedule: |
5 | | - - cron: '31 16 * * 3' |
6 | 4 | workflow_dispatch: |
7 | | - push: |
8 | | - branches: |
9 | | - - main |
10 | | - paths: |
11 | | - - 'Dockerfile' |
12 | | - - '.github/workflows/docker-image.yml' |
13 | | - - 's6-overlay/**' |
14 | | - - '!README.md' |
15 | | - - '!*.md' |
16 | | - - '!docs/**' |
17 | | - pull_request: |
18 | | - paths: |
19 | | - - 'Dockerfile' |
20 | | - - '.github/workflows/docker-image.yml' |
21 | | - - 's6-overlay/**' |
22 | | - - '!README.md' |
23 | | - - '!*.md' |
24 | | - - '!docs/**' |
| 5 | + # schedule: |
| 6 | + # - cron: '31 16 * * 3' |
| 7 | + # push: |
| 8 | + # branches: |
| 9 | + # - main |
| 10 | + # paths: |
| 11 | + # - 'Dockerfile' |
| 12 | + # - '.github/workflows/docker-image.yml' |
| 13 | + # - 's6-overlay/**' |
| 14 | + # - '!README.md' |
| 15 | + # - '!*.md' |
| 16 | + # - '!docs/**' |
| 17 | + # pull_request: |
| 18 | + # paths: |
| 19 | + # - 'Dockerfile' |
| 20 | + # - '.github/workflows/docker-image.yml' |
| 21 | + # - 's6-overlay/**' |
| 22 | + # - '!README.md' |
| 23 | + # - '!*.md' |
| 24 | + # - '!docs/**' |
25 | 25 |
|
26 | 26 | concurrency: |
27 | 27 | group: ${{ github.workflow }}-${{ github.ref }} |
@@ -269,19 +269,20 @@ jobs: |
269 | 269 | ${{ env.GHCR_ADDITIONAL_TAGS }} |
270 | 270 | ${{ env.QUAY_ADDITIONAL_TAGS }} |
271 | 271 |
|
272 | | - - name: Build PR preview image |
273 | | - if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository |
274 | | - uses: docker/build-push-action@v6 |
275 | | - with: |
276 | | - context: . |
277 | | - push: true |
278 | | - platforms: linux/amd64 |
279 | | - build-args: | |
280 | | - VERSION=${{ matrix.php-version }}-${{ matrix.php-type }}-${{ matrix.php-base-os }} |
281 | | - PHPVERSION=${{ matrix.php-version }} |
282 | | - BASEOS=${{ matrix.php-base-os }} |
283 | | - tags: | |
284 | | - ghcr.io/kingpin/${{ github.event.repository.name }}:pr-${{ github.event.pull_request.number }}-${{ env.IMAGE_NAME }} |
| 272 | + # PR preview image build disabled because workflow now runs only via workflow_dispatch |
| 273 | + # - name: Build PR preview image |
| 274 | + # if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository |
| 275 | + # uses: docker/build-push-action@v6 |
| 276 | + # with: |
| 277 | + # context: . |
| 278 | + # push: true |
| 279 | + # platforms: linux/amd64 |
| 280 | + # build-args: | |
| 281 | + # VERSION=${{ matrix.php-version }}-${{ matrix.php-type }}-${{ matrix.php-base-os }} |
| 282 | + # PHPVERSION=${{ matrix.php-version }} |
| 283 | + # BASEOS=${{ matrix.php-base-os }} |
| 284 | + # tags: | |
| 285 | + # ghcr.io/kingpin/${{ github.event.repository.name }}:pr-${{ github.event.pull_request.number }}-${{ env.IMAGE_NAME }} |
285 | 286 |
|
286 | 287 | - name: Create and push manifest |
287 | 288 | if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && steps.check-changes.outputs.skip != 'true' }} |
|
0 commit comments