forked from project-codeflare/codeflare-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1001 Bytes
/
operator-image.yml
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
37
38
39
40
41
# This workflow will build the CodeFlare Operator dev image and push it to the project-codeflare image registry
name: Operator Dev Image
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'test/**'
- '**.adoc'
- '**.md'
- 'LICENSE'
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: Login to Quay.io
id: podman-login-quay
run: |
podman login --username ${{ secrets.QUAY_ID }} --password ${{ secrets.QUAY_TOKEN }} quay.io
- name: Image Build
run: |
make build
make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:dev
make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:dev
- name: Logout from Quay.io
if: always() && steps.podman-login-quay.outcome == 'success'
run: |
podman logout quay.io