Skip to content

Commit 55ece75

Browse files
authored
Merge pull request #155 from Joeavaikath/quay-push-update
Trigger Quay push on oadp-* branch pushes instead of tag pushes
2 parents 111acba + 26a44f7 commit 55ece75

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/quay_binaries_push.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# Push binaries to Quay.io, when a new release is created
1+
# Push binaries to Quay.io on pushes to oadp-* branches
22
name: Multi-Arch Binary Push to Quay.io
33

44
on:
55
push:
6-
tags:
7-
- 'v*'
6+
branches:
7+
- '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, 'v')
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)