File tree 1 file changed +13
-28
lines changed
1 file changed +13
-28
lines changed Original file line number Diff line number Diff line change 1
- # This workflow will build the CodeFlare Operator image and push it to the project-codeflare image registry
1
+ # This workflow will build the CodeFlare Operator dev image and push it to the project-codeflare image registry
2
2
3
- name : Operator Image
3
+ name : Operator Dev Image
4
4
5
5
on :
6
- workflow_dispatch :
7
- inputs :
8
- tag :
9
- description : ' Tag to be used for operator image'
10
- required : true
11
- default : ' unstable'
6
+ push :
7
+ branches :
8
+ - main
9
+ paths-ignore :
10
+ - ' docs/**'
11
+ - ' test/**'
12
+ - ' **.adoc'
13
+ - ' **.md'
14
+ - ' LICENSE'
12
15
13
16
jobs :
14
17
push :
21
24
with :
22
25
go-version : v1.19
23
26
24
- - name : Install operator-sdk
25
- run : |
26
- export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac)
27
- export OS=$(uname | awk '{print tolower($0)}')
28
- export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/v1.27.0
29
- curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH}
30
- chmod +x operator-sdk_${OS}_${ARCH} && sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk
31
-
32
27
- name : Login to Quay.io
33
28
uses : redhat-actions/podman-login@v1
34
29
with :
39
34
- name : Image Build
40
35
run : |
41
36
make build
42
- make bundle
43
- make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG}
44
- podman tag quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG} quay.io/project-codeflare/codeflare-operator:latest
45
- env :
46
- SOURCE_TAG : ${{ github.event.inputs.tag }}
47
-
48
- - name : Image Push
49
- run : |
50
- make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG}
51
- make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:latest
52
- env :
53
- SOURCE_TAG : ${{ github.event.inputs.tag }}
37
+ make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:dev
38
+ make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:dev
You can’t perform that action at this time.
0 commit comments