Skip to content

Commit ee1f794

Browse files
committed
ci(template): Publish to quay.io
1 parent f71831c commit ee1f794

2 files changed

Lines changed: 47 additions & 4 deletions

File tree

template/.github/workflows/build.yaml.j2

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
build-arguments: VERSION=${{ steps.version.outputs.OPERATOR_VERSION }}
174174
container-file: docker/Dockerfile
175175

176-
- name: Publish Container Image
176+
- name: Publish Container Image (oci.stackable.tech)
177177
if: ${{ !github.event.pull_request.head.repo.fork }}
178178
uses: stackabletech/actions/publish-image@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0
179179
with:
@@ -184,6 +184,17 @@ jobs:
184184
image-manifest-tag: ${{ steps.build.outputs.image-manifest-tag }}
185185
source-image-uri: ${{ steps.build.outputs.image-manifest-uri }}
186186

187+
- name: Publish Container Image (quay.io)
188+
if: ${{ !github.event.pull_request.head.repo.fork }}
189+
uses: stackabletech/actions/publish-image@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0
190+
with:
191+
image-registry-uri: quay.io
192+
image-registry-username: stackable+robot_sdp_github_action_build # Doesn't exist yet
193+
image-registry-password: ${{ secrets.QUAY_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }} # Doesn't exist yet
194+
image-repository: stackable/sdp/${{ env.OPERATOR_NAME }}
195+
image-manifest-tag: ${{ steps.build.outputs.image-manifest-tag }}
196+
source-image-uri: ${{ steps.build.outputs.image-manifest-uri }}
197+
187198
publish-index-manifest:
188199
name: Publish/Sign ${{ needs.build-container-image.outputs.operator-version }} Index
189200
if: |
@@ -202,7 +213,7 @@ jobs:
202213
with:
203214
persist-credentials: false
204215

205-
- name: Publish and Sign Image Index
216+
- name: Publish and Sign Image Index (oci.stackable.tech)
206217
uses: stackabletech/actions/publish-image-index-manifest@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0
207218
with:
208219
image-registry-uri: oci.stackable.tech
@@ -211,6 +222,15 @@ jobs:
211222
image-repository: sdp/${{ env.OPERATOR_NAME }}
212223
image-index-manifest-tag: ${{ needs.build-container-image.outputs.operator-version }}
213224

225+
- name: Publish and Sign Image Index (quay.io)
226+
uses: stackabletech/actions/publish-image-index-manifest@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0
227+
with:
228+
image-registry-uri: quay.io
229+
image-registry-username: stackable+robot_sdp_github_action_build # Doesn't exist yet
230+
image-registry-password: ${{ secrets.QUAY_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }} # Doesn't exist yet
231+
image-repository: stackable/sdp/${{ env.OPERATOR_NAME }}
232+
image-index-manifest-tag: ${{ needs.build-container-image.outputs.operator-version }}
233+
214234
publish-helm-chart:
215235
name: Package/Publish ${{ needs.build-container-image.outputs.operator-version }} Helm Chart
216236
if: |
@@ -229,7 +249,7 @@ jobs:
229249
persist-credentials: false
230250
submodules: recursive
231251

232-
- name: Package, Publish, and Sign Helm Chart
252+
- name: Package, Publish, and Sign Helm Chart (coi.stackable.tech)
233253
uses: stackabletech/actions/publish-helm-chart@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0
234254
with:
235255
chart-registry-uri: oci.stackable.tech
@@ -241,6 +261,18 @@ jobs:
241261
app-version: ${{ needs.build-container-image.outputs.operator-version }}
242262
publish-and-sign: ${{ !github.event.pull_request.head.repo.fork }}
243263

264+
- name: Package, Publish, and Sign Helm Chart (quay.io)
265+
uses: stackabletech/actions/publish-helm-chart@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0
266+
with:
267+
chart-registry-uri: quay.io
268+
chart-registry-username: stackable+robot_sdp_charts_github_action_build # Doesn't exist yet
269+
chart-registry-password: ${{ secrets.QUAY_ROBOT_SDP_CHARTS_GITHUB_ACTION_BUILD_SECRET }} # Doesn't exist yet
270+
chart-repository: stackable/sdp-charts
271+
chart-directory: deploy/helm/${{ env.OPERATOR_NAME }}
272+
chart-version: ${{ needs.build-container-image.outputs.operator-version }}
273+
app-version: ${{ needs.build-container-image.outputs.operator-version }}
274+
publish-and-sign: ${{ !github.event.pull_request.head.repo.fork }}
275+
244276
openshift-preflight-check:
245277
name: Run OpenShift Preflight Check for ${{ needs.build-container-image.outputs.operator-version }}-${{ matrix.arch }}
246278
if: |
@@ -259,12 +291,18 @@ jobs:
259291
- arm64
260292
runs-on: ubuntu-latest
261293
steps:
262-
- name: Run OpenShift Preflight Check
294+
- name: Run OpenShift Preflight Check (oci.stackable.tech)
263295
uses: stackabletech/actions/run-openshift-preflight@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0
264296
with:
265297
image-index-uri: oci.stackable.tech/sdp/${{ env.OPERATOR_NAME }}:${{ needs.build-container-image.outputs.operator-version }}
266298
image-architecture: ${{ matrix.arch }}
267299

300+
- name: Run OpenShift Preflight Check (quay.io)
301+
uses: stackabletech/actions/run-openshift-preflight@ac6f1d3b87f68826b9a5838d13864ef8e88dcf40 # v0.14.0
302+
with:
303+
image-index-uri: quay.io/stackable/sdp/${{ env.OPERATOR_NAME }}:${{ needs.build-container-image.outputs.operator-version }}
304+
image-architecture: ${{ matrix.arch }}
305+
268306
# This job is a required check in GitHub Settings for this repository.
269307
# It saves us having to list many required jobs, or work around dynamically
270308
# named jobs (since there is no concept of required settings).
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
# Values overlay for chart packages published to quay.io.
3+
image:
4+
registry: quay.io
5+
repository: stackable/sdp/airflow-operator

0 commit comments

Comments
 (0)