forked from cloud-bulldozer/orion
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 880 Bytes
/
image-push.yaml
File metadata and controls
36 lines (32 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Image Push
on:
workflow_dispatch:
push:
branches:
- master
- main
jobs:
build_image:
name: Image Push
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v5
- name: Build Orion Image
id: build-orion
uses: redhat-actions/buildah-build@v2
with:
image: orion
context: .
tags: latest ${{ github.sha }}
containerfiles: |
./Dockerfile
- name: Push orion image to quay.io
id: push-front-to-quay
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-orion.outputs.image }}
tags: ${{ steps.build-orion.outputs.tags }}
registry: quay.io/cloud-bulldozer
username: ${{ secrets.QUAY_USER }}
password: ${{ secrets.QUAY_TOKEN }}