@@ -4,9 +4,8 @@ name: Image
4
4
5
5
on :
6
6
push :
7
- branches : ["main"]
8
- paths :
9
- - " VERSION"
7
+ tags :
8
+ - " *"
10
9
11
10
jobs :
12
11
push :
15
14
- uses : actions/checkout@v3
16
15
17
16
- name : Grab New Version Tag
17
+ id : tag_name
18
18
run : |
19
- echo "tag=$(cat VERSION)" >> $GITHUB_ENV
19
+ echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
20
20
21
21
- name : Login to Quay.io
22
22
uses : redhat-actions/podman-login@v1
@@ -34,14 +34,18 @@ jobs:
34
34
35
35
- name : Image Build
36
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
37
+ make image-build -e IMG=quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG}
38
+ podman tag quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG} quay.io/project-codeflare/codeflare-operator:latest
39
+ make bundle-build -e BUNDLE_IMG=quay.io/project-codeflare/codeflare-operator-bundle:${SOURCE_TAG}
40
+ podman tag quay.io/project-codeflare/codeflare-operator-bundle:${SOURCE_TAG} quay.io/project-codeflare/codeflare-operator-bundle:latest
41
+ env :
42
+ SOURCE_TAG : ${{ steps.tag_name.outputs.SOURCE_TAG }}
41
43
42
44
- name : Image Push
43
45
run : |
44
- make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:${{ env.tag } }
46
+ make image-push -e IMG=quay.io/project-codeflare/codeflare-operator:${SOURCE_TAG }
45
47
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 } }
48
+ make bundle-push -e BUNDLE_IMG=quay.io/project-codeflare/codeflare-operator-bundle:${SOURCE_TAG }
47
49
make bundle-push -e BUNDLE_IMG=quay.io/project-codeflare/codeflare-operator-bundle:latest
50
+ env :
51
+ SOURCE_TAG : ${{ steps.tag_name.outputs.SOURCE_TAG }}
0 commit comments