Skip to content

Commit 52d4003

Browse files
authored
ci: Add publish-to-quay toggle (#1496)
* ci: Add push-to-quay toggle * ci: Rename push-to-quay to publish-to-quay
1 parent c0c0410 commit 52d4003

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/build_spark-connect-client.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ jobs:
4242
# Since building Vector from source, this build runs out of disk space.
4343
# As such, we use the Ubicloud runners which provide bigger disks.
4444
runners: ubicloud
45+
publish-to-quay: false

.github/workflows/reusable_build_image.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,18 @@ on:
2626
- `ubicloud`: Both the x86_64 and the aarch64 builds run on the Ubicloud runners
2727
default: mixed
2828
type: string
29+
publish-to-quay:
30+
description: |
31+
Whether to publish to quay.io or not. If `true`, the `quay-robot-secret` needs to be
32+
provided.
33+
type: boolean
34+
default: true
2935
secrets:
3036
harbor-robot-secret:
3137
description: The secret for the Harbor robot user used to push images and manifest
3238
required: true
3339
quay-robot-secret:
3440
description: The secret for the Quay.io robot user used to push images and manifest
35-
required: true
3641
slack-token:
3742
description: The Slack token used to post failure notifications
3843
required: true
@@ -133,6 +138,7 @@ jobs:
133138
source-image-uri: localhost/${{ inputs.registry-namespace }}/${{ inputs.product-name }}:${{ steps.build.outputs.image-manifest-tag }}
134139

135140
- name: Publish Container Image on quay.io
141+
if: inputs.publish-to-quay
136142
uses: stackabletech/actions/publish-image@8a8085be0a8cec3d24ad3970e602d65be487da6a # v0.14.1
137143
with:
138144
image-registry-uri: quay.io
@@ -179,6 +185,7 @@ jobs:
179185
image-index-manifest-tag: ${{ matrix.versions }}-stackable${{ inputs.sdp-version }}
180186

181187
- name: Publish and Sign Image Index Manifest to quay.io
188+
if: inputs.publish-to-quay
182189
uses: stackabletech/actions/publish-image-index-manifest@8a8085be0a8cec3d24ad3970e602d65be487da6a # v0.14.1
183190
with:
184191
image-registry-uri: quay.io

0 commit comments

Comments
 (0)