Skip to content

Commit 53600f7

Browse files
KingPinKingPin
authored andcommitted
ci: disable automated triggers and PR preview builds in docker-image.v1/v2
Comment out schedule, push and pull_request triggers so workflows run via manual workflow_dispatch. Also disable the PR preview image build in v2 (commented) since the pipeline is intended for manual/controlled runs.
1 parent 75fe76d commit 53600f7

2 files changed

Lines changed: 36 additions & 35 deletions

File tree

.github/workflows/docker-image.v1.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Docker Image CI
22

33
on:
4-
schedule:
5-
- cron: '31 16 * * 3'
64
workflow_dispatch:
5+
# schedule:
6+
# - cron: '31 16 * * 3'
77

88
jobs:
99
build:

.github/workflows/docker-image.v2.yml

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
name: PHP Docker Build Pipeline
22

33
on:
4-
schedule:
5-
- cron: '31 16 * * 3'
64
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/**'
2525

2626
concurrency:
2727
group: ${{ github.workflow }}-${{ github.ref }}
@@ -269,19 +269,20 @@ jobs:
269269
${{ env.GHCR_ADDITIONAL_TAGS }}
270270
${{ env.QUAY_ADDITIONAL_TAGS }}
271271
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 }}
285286

286287
- name: Create and push manifest
287288
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && steps.check-changes.outputs.skip != 'true' }}

0 commit comments

Comments
 (0)