4848
4949 - name : Check for changed files
5050 id : check
51- uses : stackabletech/actions/detect-changes@6a84fcfccf4ee37d85217407bc6a94742afbb45f # v0.14.2
51+ uses : stackabletech/actions/detect-changes@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
5252 with :
5353 patterns : |
5454 - '.github/workflows/build.yaml'
8383 submodules : recursive
8484
8585 - name : Install Rust ${{ env.RUST_TOOLCHAIN_VERSION }} toolchain
86- uses : dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b
87- with :
88- toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
86+ shell : bash
87+ run : rustup toolchain install "${RUST_TOOLCHAIN_VERSION}"
8988
9089 - name : Setup Rust Cache
9190 uses : Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
@@ -160,22 +159,21 @@ jobs:
160159 uses : cachix/install-nix-action@fc6e360bedc9ee72d75e701397f0bb30dce77568 # v31.5.2
161160
162161 - name : Install Rust ${{ env.RUST_TOOLCHAIN_VERSION }} Toolchain
163- uses : dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b
164- with :
165- toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
162+ shell : bash
163+ run : rustup toolchain install "${RUST_TOOLCHAIN_VERSION}"
166164
167165 - name : Build Container Image
168166 id : build
169- uses : stackabletech/actions/build-container-image@6a84fcfccf4ee37d85217407bc6a94742afbb45f # v0.14.2
167+ uses : stackabletech/actions/build-container-image@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
170168 with :
171169 image-name : ${{ env.OPERATOR_NAME }}
172170 image-index-manifest-tag : ${{ steps.version.outputs.OPERATOR_VERSION }}
173171 build-arguments : VERSION=${{ steps.version.outputs.OPERATOR_VERSION }}
174172 container-file : docker/Dockerfile
175173
176- - name : Publish Container Image
174+ - name : Publish Container Image to oci.stackable.tech
177175 if : ${{ !github.event.pull_request.head.repo.fork }}
178- uses : stackabletech/actions/publish-image@6a84fcfccf4ee37d85217407bc6a94742afbb45f # v0.14.2
176+ uses : stackabletech/actions/publish-image@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
179177 with :
180178 image-registry-uri : oci.stackable.tech
181179 image-registry-username : robot$sdp+github-action-build
@@ -184,6 +182,17 @@ jobs:
184182 image-manifest-tag : ${{ steps.build.outputs.image-manifest-tag }}
185183 source-image-uri : ${{ steps.build.outputs.image-manifest-uri }}
186184
185+ - name : Publish Container Image to quay.io
186+ if : ${{ !github.event.pull_request.head.repo.fork }}
187+ uses : stackabletech/actions/publish-image@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
188+ with :
189+ image-registry-uri : quay.io
190+ image-registry-username : stackable+robot_sdp_github_action_build
191+ image-registry-password : ${{ secrets.QUAY_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
192+ image-repository : stackable/sdp/${{ env.OPERATOR_NAME }}
193+ image-manifest-tag : ${{ steps.build.outputs.image-manifest-tag }}
194+ source-image-uri : ${{ steps.build.outputs.image-manifest-uri }}
195+
187196 publish-index-manifest :
188197 name : Publish/Sign ${{ needs.build-container-image.outputs.operator-version }} Index
189198 if : |
@@ -202,15 +211,24 @@ jobs:
202211 with :
203212 persist-credentials : false
204213
205- - name : Publish and Sign Image Index
206- uses : stackabletech/actions/publish-image-index-manifest@6a84fcfccf4ee37d85217407bc6a94742afbb45f # v0.14.2
214+ - name : Publish and Sign Image Index to oci.stackable.tech
215+ uses : stackabletech/actions/publish-image-index-manifest@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
207216 with :
208217 image-registry-uri : oci.stackable.tech
209218 image-registry-username : robot$sdp+github-action-build
210219 image-registry-password : ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
211220 image-repository : sdp/${{ env.OPERATOR_NAME }}
212221 image-index-manifest-tag : ${{ needs.build-container-image.outputs.operator-version }}
213222
223+ - name : Publish and Sign Image Index to quay.io
224+ uses : stackabletech/actions/publish-image-index-manifest@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
225+ with :
226+ image-registry-uri : quay.io
227+ image-registry-username : stackable+robot_sdp_github_action_build
228+ image-registry-password : ${{ secrets.QUAY_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
229+ image-repository : stackable/sdp/${{ env.OPERATOR_NAME }}
230+ image-index-manifest-tag : ${{ needs.build-container-image.outputs.operator-version }}
231+
214232 publish-helm-chart :
215233 name : Package/Publish ${{ needs.build-container-image.outputs.operator-version }} Helm Chart
216234 if : |
@@ -229,8 +247,8 @@ jobs:
229247 persist-credentials : false
230248 submodules : recursive
231249
232- - name : Package, Publish, and Sign Helm Chart
233- uses : stackabletech/actions/publish-helm-chart@6a84fcfccf4ee37d85217407bc6a94742afbb45f # v0.14.2
250+ - name : Package, Publish, and Sign Helm Chart to oci.stackable.tech
251+ uses : stackabletech/actions/publish-helm-chart@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
234252 with :
235253 chart-registry-uri : oci.stackable.tech
236254 chart-registry-username : robot$sdp-charts+github-action-build
@@ -241,6 +259,19 @@ jobs:
241259 app-version : ${{ needs.build-container-image.outputs.operator-version }}
242260 publish-and-sign : ${{ !github.event.pull_request.head.repo.fork }}
243261
262+ - name : Package, Publish, and Sign Helm Chart to quay.io
263+ uses : stackabletech/actions/publish-helm-chart@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
264+ with :
265+ chart-registry-uri : quay.io
266+ chart-registry-username : stackable+robot_sdp_charts_github_action_build
267+ chart-registry-password : ${{ secrets.QUAY_ROBOT_SDP_CHARTS_GITHUB_ACTION_BUILD_SECRET }}
268+ chart-repository : stackable/sdp-charts
269+ chart-directory : deploy/helm/${{ env.OPERATOR_NAME }}
270+ chart-version : ${{ needs.build-container-image.outputs.operator-version }}
271+ app-version : ${{ needs.build-container-image.outputs.operator-version }}
272+ publish-and-sign : ${{ !github.event.pull_request.head.repo.fork }}
273+ helm-version : v3.17.4 # This is currently the latest version which supports pushing to quay.io
274+
244275 openshift-preflight-check :
245276 name : Run OpenShift Preflight Check for ${{ needs.build-container-image.outputs.operator-version }}-${{ matrix.arch }}
246277 if : |
@@ -259,12 +290,18 @@ jobs:
259290 - arm64
260291 runs-on : ubuntu-latest
261292 steps :
262- - name : Run OpenShift Preflight Check
263- uses : stackabletech/actions/run-openshift-preflight@6a84fcfccf4ee37d85217407bc6a94742afbb45f # v0.14.2
293+ - name : Run OpenShift Preflight Check for oci.stackable.tech
294+ uses : stackabletech/actions/run-openshift-preflight@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
264295 with :
265296 image-index-uri : oci.stackable.tech/sdp/${{ env.OPERATOR_NAME }}:${{ needs.build-container-image.outputs.operator-version }}
266297 image-architecture : ${{ matrix.arch }}
267298
299+ - name : Run OpenShift Preflight Check for quay.io
300+ uses : stackabletech/actions/run-openshift-preflight@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
301+ with :
302+ image-index-uri : quay.io/stackable/sdp/${{ env.OPERATOR_NAME }}:${{ needs.build-container-image.outputs.operator-version }}
303+ image-architecture : ${{ matrix.arch }}
304+
268305 # This job is a required check in GitHub Settings for this repository.
269306 # It saves us having to list many required jobs, or work around dynamically
270307 # named jobs (since there is no concept of required settings).
@@ -300,7 +337,7 @@ jobs:
300337 persist-credentials : false
301338
302339 - name : Send Notification
303- uses : stackabletech/actions/send-slack-notification@6a84fcfccf4ee37d85217407bc6a94742afbb45f # v0.14.2
340+ uses : stackabletech/actions/send-slack-notification@a14cbd08d9e034e2361ea9205b32aff0491885db # v0.15.0
304341 with :
305342 publish-helm-chart-result : ${{ needs.publish-helm-chart.result }}
306343 publish-manifests-result : ${{ needs.publish-index-manifest.result }}
0 commit comments