Skip to content

Commit 3953c51

Browse files
bugerclaude
andcommitted
perf: skip fips/std CI Docker pushes on PRs, amd64-only for ee
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent daf2828 commit 3953c51

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
164164
with:
165165
context: "dist"
166-
platforms: linux/amd64,linux/arm64,linux/s390x
166+
platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm64,linux/s390x' }}
167167
file: ci/Dockerfile.distroless
168168
provenance: mode=max
169169
sbom: true
@@ -210,7 +210,7 @@ jobs:
210210
BUILD_PACKAGE_NAME=tyk-gateway-ee
211211
- name: Docker metadata for fips CI
212212
id: ci_metadata_fips
213-
if: ${{ matrix.golang_cross == '1.25-bullseye' }}
213+
if: ${{ matrix.golang_cross == '1.25-bullseye' && github.event_name != 'pull_request' }}
214214
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
215215
with:
216216
images: |
@@ -225,7 +225,7 @@ jobs:
225225
type=semver,pattern={{major}}.{{minor}},prefix=v
226226
type=semver,pattern={{version}},prefix=v
227227
- name: push fips image to CI
228-
if: ${{ matrix.golang_cross == '1.25-bullseye' }}
228+
if: ${{ matrix.golang_cross == '1.25-bullseye' && github.event_name != 'pull_request' }}
229229
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
230230
with:
231231
context: "dist"
@@ -289,7 +289,7 @@ jobs:
289289
fi
290290
- name: Docker metadata for std CI
291291
id: ci_metadata_std
292-
if: ${{ matrix.golang_cross == '1.25-bullseye' }}
292+
if: ${{ matrix.golang_cross == '1.25-bullseye' && github.event_name != 'pull_request' }}
293293
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
294294
with:
295295
images: |
@@ -304,7 +304,7 @@ jobs:
304304
type=semver,pattern={{major}}.{{minor}},prefix=v
305305
type=semver,pattern={{version}},prefix=v
306306
- name: push std image to CI
307-
if: ${{ matrix.golang_cross == '1.25-bullseye' }}
307+
if: ${{ matrix.golang_cross == '1.25-bullseye' && github.event_name != 'pull_request' }}
308308
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
309309
with:
310310
context: "dist"

0 commit comments

Comments
 (0)