File tree Expand file tree Collapse file tree 1 file changed +13
-28
lines changed Expand file tree Collapse file tree 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
22
3- name : Operator Image
3+ name : Operator Dev Image
44
55on :
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'
1215
1316jobs :
1417 push :
1518 runs-on : ubuntu-latest
1619 steps :
1720 - uses : actions/checkout@v3
1821
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-
2722 - name : Login to Quay.io
2823 uses : redhat-actions/podman-login@v1
2924 with :
3429 - name : Image Build
3530 run : |
3631 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