7676 # - name: Run cargo-udeps
7777 # run: cargo udeps --workspace --all-targets
7878
79- build-image :
79+ build-container- image :
8080 name : Build/Publish ${{ matrix.runner.arch }} Image
8181 # needs:
8282 # - cargo-udeps
@@ -137,15 +137,15 @@ jobs:
137137
138138 - name : Build Container Image
139139 id : build
140- uses : stackabletech/actions/build-container-image@976e8c293cb59f391dbf8563ab28e965e79ca36d # 0.10.4
140+ uses : stackabletech/actions/build-container-image@29bea1b451c0c2e994bd495969286f95bf49ed6a # TODO: Use released action
141141 with :
142142 image-name : ${{ env.OPERATOR_NAME }}
143143 image-index-manifest-tag : ${{ steps.version.outputs.OPERATOR_VERSION }}
144144 build-arguments : VERSION=${{ steps.version.outputs.OPERATOR_VERSION }}
145145 container-file : docker/Dockerfile
146146
147147 - name : Publish Container Image
148- uses : stackabletech/actions/publish-image@976e8c293cb59f391dbf8563ab28e965e79ca36d # 0.10.4
148+ uses : stackabletech/actions/publish-image@29bea1b451c0c2e994bd495969286f95bf49ed6a # TODO: Use released action
149149 with :
150150 image-registry-uri : oci.stackable.tech
151151 image-registry-username : robot$sdp+github-action-build
@@ -155,26 +155,26 @@ jobs:
155155 source-image-uri : ${{ steps.build.outputs.image-manifest-uri }}
156156
157157 publish-index-manifest :
158- name : Publish/Sign ${{ needs.build-image.outputs.operator-version }} Index
158+ name : Publish/Sign ${{ needs.build-container- image.outputs.operator-version }} Index
159159 needs :
160- - build-image
160+ - build-container- image
161161 permissions :
162162 id-token : write
163163 runs-on : ubuntu-latest
164164 steps :
165165 - name : Publish and Sign Image Index
166- uses : stackabletech/actions/publish-index-manifest@497f3e3cbfe9b89b1e570351b97d050eebcad5d0 # 0.8.3
166+ uses : stackabletech/actions/publish-index-manifest@29bea1b451c0c2e994bd495969286f95bf49ed6a # TODO: Use released action
167167 with :
168168 image-registry-uri : oci.stackable.tech
169169 image-registry-username : robot$sdp+github-action-build
170170 image-registry-password : ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
171171 image-repository : sdp/${{ env.OPERATOR_NAME }}
172- image-index-manifest-tag : ${{ needs.build-image.outputs.operator-version }}
172+ image-index-manifest-tag : ${{ needs.build-container- image.outputs.operator-version }}
173173
174- package -chart :
175- name : Package/Publish ${{ needs.build-image.outputs.operator-version }} Helm Chart
174+ publish-helm -chart :
175+ name : Package/Publish ${{ needs.build-container- image.outputs.operator-version }} Helm Chart
176176 needs :
177- - build-image
177+ - build-container- image
178178 runs-on : ubuntu-latest
179179 steps :
180180 - name : Checkout Repository
@@ -184,20 +184,20 @@ jobs:
184184 submodules : recursive
185185
186186 - name : Package, Publish, and Sign Helm Chart
187- uses : stackabletech/actions/publish-helm-chart@976e8c293cb59f391dbf8563ab28e965e79ca36d # 0.10.4
187+ uses : stackabletech/actions/publish-helm-chart@29bea1b451c0c2e994bd495969286f95bf49ed6a # TODO: Use released action
188188 with :
189189 chart-registry-uri : oci.stackable.tech
190190 chart-registry-username : robot$sdp+github-action-build
191191 chart-registry-password : ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
192192 chart-repository : sdp-charts/${{ env.OPERATOR_NAME }}
193193 chart-directory : deploy/helm/${{ env.OPERATOR_NAME }}
194- chart-version : ${{ needs.build-image.outputs.operator-version }}
195- app-version : ${{ needs.build-image.outputs.operator-version }}
194+ chart-version : ${{ needs.build-container- image.outputs.operator-version }}
195+ app-version : ${{ needs.build-container- image.outputs.operator-version }}
196196
197197 openshift-preflight-check :
198- name : Run OpenShift Preflight Check for ${{ needs.build-image.outputs.operator-version }}-${{ matrix.arch }}
198+ name : Run OpenShift Preflight Check for ${{ needs.build-container- image.outputs.operator-version }}-${{ matrix.arch }}
199199 needs :
200- - build-image
200+ - build-container- image
201201 - publish-index-manifest
202202 strategy :
203203 fail-fast : false
@@ -208,7 +208,31 @@ jobs:
208208 runs-on : ubuntu-latest
209209 steps :
210210 - name : Run OpenShift Preflight Check
211- uses : stackabletech/actions/run-openshift-preflight@976e8c293cb59f391dbf8563ab28e965e79ca36d # 0.10.4
211+ uses : stackabletech/actions/run-openshift-preflight@29bea1b451c0c2e994bd495969286f95bf49ed6a # TODO: Use released action
212212 with :
213- image-index-uri : oci.stackable.tech/sdp/${{ env.OPERATOR_NAME }}:${{ needs.build-image.outputs.operator-version }}
213+ image-index-uri : oci.stackable.tech/sdp/${{ env.OPERATOR_NAME }}:${{ needs.build-container- image.outputs.operator-version }}
214214 image-architecture : ${{ matrix.arch }}
215+
216+ notify :
217+ name : Failure Notification
218+ needs :
219+ - build-container-image
220+ - publish-index-manifest
221+ - publish-helm-chart
222+ runs-on : ubuntu-latest
223+ if : failure() || github.run_attempt > 1
224+ steps :
225+ - name : Checkout Repository
226+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
227+ with :
228+ persist-credentials : false
229+
230+ - name : Send Notification
231+ uses : stackabletech/actions/send-slack-notification@29bea1b451c0c2e994bd495969286f95bf49ed6a # TODO: Use released action
232+ with :
233+ publish-helm-chart-result : ${{ needs.publish-helm-chart.result }}
234+ publish-manifests-result : ${{ needs.publish-index-manifest.result }}
235+ build-result : ${{ needs.build-container-image.result }}
236+ slack-token : ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
237+ channel-id : C07UG6JH44F # notifications-container-images
238+ type : container-image-build
0 commit comments