File tree Expand file tree Collapse file tree 4 files changed +99
-0
lines changed Expand file tree Collapse file tree 4 files changed +99
-0
lines changed Original file line number Diff line number Diff line change @@ -353,3 +353,28 @@ jobs:
353
353
- name : Skip build notification
354
354
if : steps.check-changes.outputs.should_build == 'false'
355
355
run : echo "Skipping UI preview build - no relevant files changed"
356
+
357
+ build-and-push-container :
358
+ runs-on : ubuntu-latest
359
+ permissions :
360
+ packages : write
361
+ steps :
362
+ - name : Checkout
363
+ uses : actions/checkout@v4
364
+ - name : Buildah build
365
+ id : build-image
366
+ uses : redhat-actions/buildah-build@v2
367
+ with :
368
+ image : ${{ github.event.repository.name }}
369
+ tags : " pr-${{ github.event.number }}"
370
+ containerfiles : |
371
+ ./deploy/Containerfile
372
+ - name : Push To ghcr.io
373
+ id : push-to-ghcr
374
+ uses : redhat-actions/push-to-registry@v2
375
+ with :
376
+ image : ${{ steps.build-image.outputs.image }}
377
+ tags : ${{ steps.build-image.outputs.tags }}
378
+ username : ${{ github.actor }}
379
+ password : ${{ github.token }}
380
+ registry : ghcr.io/${{ github.repository_owner }}
Original file line number Diff line number Diff line change @@ -244,3 +244,27 @@ jobs:
244
244
user_name : ${{ github.actor }}
245
245
user_email : ${{ github.actor }}@users.noreply.github.com
246
246
publish_branch : gh-pages
247
+
248
+ build-and-push-container :
249
+ needs : [unit-tests, integration-tests, e2e-tests]
250
+ runs-on : ubuntu-latest
251
+ steps :
252
+ - name : Checkout
253
+ uses : actions/checkout@v4
254
+ - name : Buildah build
255
+ id : build-image
256
+ uses : redhat-actions/buildah-build@v2
257
+ with :
258
+ image : ${{ github.event.repository.name }}
259
+ tags : nightly
260
+ containerfiles : |
261
+ ./deploy/Containerfile
262
+ - name : Push To ghcr.io
263
+ id : push-to-ghcr
264
+ uses : redhat-actions/push-to-registry@v2
265
+ with :
266
+ image : ${{ steps.build-image.outputs.image }}
267
+ tags : ${{ steps.build-image.outputs.tags }}
268
+ username : ${{ github.actor }}
269
+ password : ${{ github.token }}
270
+ registry : ghcr.io/${{ github.repository_owner }}
Original file line number Diff line number Diff line change @@ -288,3 +288,28 @@ jobs:
288
288
user_name : ${{ github.actor }}
289
289
user_email : ${{ github.actor }}@users.noreply.github.com
290
290
publish_branch : gh-pages
291
+
292
+ build-and-push-container :
293
+ needs : [unit-tests, integration-tests, e2e-tests]
294
+ runs-on : ubuntu-latest
295
+ steps :
296
+ - name : Checkout
297
+ uses : actions/checkout@v4
298
+ - name : Buildah build
299
+ id : build-image
300
+ uses : redhat-actions/buildah-build@v2
301
+ with :
302
+ image : ${{ github.event.repository.name }}
303
+ # TODO: Tag version
304
+ tags : latest
305
+ containerfiles : |
306
+ ./deploy/Containerfile
307
+ - name : Push To ghcr.io
308
+ id : push-to-ghcr
309
+ uses : redhat-actions/push-to-registry@v2
310
+ with :
311
+ image : ${{ steps.build-image.outputs.image }}
312
+ tags : ${{ steps.build-image.outputs.tags }}
313
+ username : ${{ github.actor }}
314
+ password : ${{ github.token }}
315
+ registry : ghcr.io/${{ github.repository_owner }}
Original file line number Diff line number Diff line change @@ -287,3 +287,28 @@ jobs:
287
287
user_name : ${{ github.actor }}
288
288
user_email : ${{ github.actor }}@users.noreply.github.com
289
289
publish_branch : gh-pages
290
+
291
+ build-and-push-container :
292
+ needs : [unit-tests, integration-tests, e2e-tests]
293
+ runs-on : ubuntu-latest
294
+ steps :
295
+ - name : Checkout
296
+ uses : actions/checkout@v4
297
+ - name : Buildah build
298
+ id : build-image
299
+ uses : redhat-actions/buildah-build@v2
300
+ with :
301
+ image : ${{ github.event.repository.name }}
302
+ # TODO: Tag version
303
+ tags : latest stable
304
+ containerfiles : |
305
+ ./deploy/Containerfile
306
+ - name : Push To ghcr.io
307
+ id : push-to-ghcr
308
+ uses : redhat-actions/push-to-registry@v2
309
+ with :
310
+ image : ${{ steps.build-image.outputs.image }}
311
+ tags : ${{ steps.build-image.outputs.tags }}
312
+ username : ${{ github.actor }}
313
+ password : ${{ github.token }}
314
+ registry : ghcr.io/${{ github.repository_owner }}
You can’t perform that action at this time.
0 commit comments