Skip to content

Commit 26a44f7

Browse files
Joeavaikathclaude
andcommitted
Scope PR trigger and refine manifest push conditions
Restricts pull_request trigger to oadp-* branches to avoid unnecessary CI runs. Gates push-manifest on event_name == 'push' for clarity. Pushes 'latest' tag only for oadp-dev; other branches get their branch name as the image tag. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Joseph <jvaikath@redhat.com>
1 parent 56efabf commit 26a44f7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/quay_binaries_push.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
branches:
77
- 'oadp-*'
88
pull_request:
9+
branches:
10+
- 'oadp-*'
911

1012

1113
env:
@@ -58,7 +60,7 @@ jobs:
5860
name: Create and Push Multi-Arch Manifest
5961
runs-on: ubuntu-latest
6062
needs: multi-arch-build
61-
if: startsWith(github.ref_name, 'oadp-')
63+
if: github.event_name == 'push'
6264
steps:
6365
- name: Download all artifacts
6466
uses: actions/download-artifact@v4
@@ -83,6 +85,7 @@ jobs:
8385
buildah tag $S390X_ID ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-s390x
8486
8587
- name: Create and push multi-arch manifest (version tag)
88+
if: github.ref_name != 'oadp-dev'
8689
run: |
8790
buildah manifest create ${{ env.IMAGE_REPO }}:${{ github.ref_name }}
8891
buildah manifest add ${{ env.IMAGE_REPO }}:${{ github.ref_name }} ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-amd64
@@ -92,6 +95,7 @@ jobs:
9295
buildah manifest push --all ${{ env.IMAGE_REPO }}:${{ github.ref_name }}
9396
9497
- name: Create and push multi-arch manifest (latest tag)
98+
if: github.ref_name == 'oadp-dev'
9599
run: |
96100
buildah manifest create ${{ env.IMAGE_REPO }}:latest
97101
buildah manifest add ${{ env.IMAGE_REPO }}:latest ${{ env.IMAGE_REPO }}:${{ github.ref_name }}-amd64

0 commit comments

Comments
 (0)