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 :
15
18
runs-on : ubuntu-latest
16
19
steps :
17
20
- uses : actions/checkout@v3
18
21
19
- - name : Install operator-sdk
20
- run : |
21
- export ARCH=$(case $(uname -m) in x86_64) echo -n amd64 ;; aarch64) echo -n arm64 ;; *) echo -n $(uname -m) ;; esac)
22
- export OS=$(uname | awk '{print tolower($0)}')
23
- export OPERATOR_SDK_DL_URL=https://github.com/operator-framework/operator-sdk/releases/download/v1.27.0
24
- curl -LO ${OPERATOR_SDK_DL_URL}/operator-sdk_${OS}_${ARCH}
25
- chmod +x operator-sdk_${OS}_${ARCH} && sudo mv operator-sdk_${OS}_${ARCH} /usr/local/bin/operator-sdk
26
-
27
22
- name : Login to Quay.io
28
23
uses : redhat-actions/podman-login@v1
29
24
with :
34
29
- name : Image Build
35
30
run : |
36
31
make build
37
- make bundle
38
- make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG}
39
- podman tag quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG} quay.io/project-codeflare/codeflare-operator:latest
40
- env :
41
- SOURCE_TAG : ${{ github.event.inputs.tag }}
42
-
43
- - name : Image Push
44
- run : |
45
- make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG}
46
- make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:latest
47
- env :
48
- SOURCE_TAG : ${{ github.event.inputs.tag }}
32
+ make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:dev
33
+ make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:dev
You can’t perform that action at this time.
0 commit comments