File tree Expand file tree Collapse file tree 3 files changed +50
-2
lines changed Expand file tree Collapse file tree 3 files changed +50
-2
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build images for the codeflare-operator, then push the images to the `project-codeflare` quay repo
2
+
3
+ name : Image
4
+
5
+ on :
6
+ push :
7
+ branches : ["main"]
8
+ paths :
9
+ - " VERSION"
10
+
11
+ jobs :
12
+ push :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+
17
+ - name : Grab New Version Tag
18
+ run : |
19
+ echo "tag=$(cat VERSION)" >> $GITHUB_ENV
20
+
21
+ - name : Login to Quay.io
22
+ uses : redhat-actions/podman-login@v1
23
+ with :
24
+ username : ${{ secrets.QUAY_ID }}
25
+ password : ${{ secrets.QUAY_TOKEN }}
26
+ registry : quay.io
27
+
28
+ - name : Login to Red Hat Registry
29
+ uses : redhat-actions/podman-login@v1
30
+ with :
31
+ username : ${{ secrets.RH_REG_ID }}
32
+ password : ${{ secrets.RH_REG_TOKEN }}
33
+ registry : registry.redhat.io
34
+
35
+ - name : Image Build
36
+ run : |
37
+ make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:${{ env.tag }}
38
+ podman tag quay.io/project-codeflare/codeflare-operator:${{ env.tag }} quay.io/project-codeflare/codeflare-operator:latest
39
+ make bundle-build -e BUNDLE_IMG=quay.io/project-codeflare/codeflare-operator-bundle:${{ env.tag }}
40
+ podman tag quay.io/project-codeflare/codeflare-operator-bundle:${{ env.tag }} quay.io/project-codeflare/codeflare-operator-bundle:latest
41
+
42
+ - name : Image Push
43
+ run : |
44
+ make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:${{ env.tag }}
45
+ make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:latest
46
+ make bundle-push -e BUNDLE_IMG=quay.io/project-codeflare/codeflare-operator-bundle:${{ env.tag }}
47
+ make bundle-push -e BUNDLE_IMG=quay.io/project-codeflare/codeflare-operator-bundle:latest
Original file line number Diff line number Diff line change
1
+ v0.0.1
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ metadata:
32
32
operators.operatorframework.io/builder : operator-sdk-v1.24.1
33
33
operators.operatorframework.io/project_layout : go.kubebuilder.io/v3
34
34
operatorframework.io/suggested-namespace : openshift-operators
35
- containerImage : quay.io/project-codeflare/codeflare-operator:0 .0.1
35
+ containerImage : quay.io/project-codeflare/codeflare-operator:v0 .0.1
36
36
createdAt : " 2023-03-08"
37
37
repository : https://github.com/project-codeflare/codeflare-operator
38
38
name : codeflare-operator.v0.0.1
@@ -454,7 +454,7 @@ spec:
454
454
- --leader-elect
455
455
command :
456
456
- /manager
457
- image : quay.io/project-codeflare/codeflare-operator:0 .0.1
457
+ image : quay.io/project-codeflare/codeflare-operator:v0 .0.1
458
458
livenessProbe :
459
459
httpGet :
460
460
path : /healthz
You can’t perform that action at this time.
0 commit comments