File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build images for Main branch
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ concurrency :
7
+ group : ${{ github.workflow }}
8
+ cancel-in-progress : true
9
+ env :
10
+ IMAGE_REPO_DSPO : data-science-pipelines-operator
11
+ QUAY_ORG : hukhan
12
+ QUAY_ID : ${{ secrets.QUAY_ID }}
13
+ QUAY_TOKEN : ${{ secrets.QUAY_TOKEN }}
14
+ SOURCE_BRANCH : main
15
+ jobs :
16
+ build-image :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ - name : Generate Tag
21
+ shell : bash
22
+ id : tags
23
+ run : |
24
+ commit_sha=${{ github.event.after }}
25
+ tag=main-${commit_sha:0:7}
26
+ echo "tag=${tag}" >> $GITHUB_OUTPUT
27
+ - name : Build Image
28
+ uses : ./.github/actions/build
29
+ env :
30
+ IMG : quay.io/${{ env.QUAY_ORG }}/data-science-pipelines-operator:${{ steps.tags.outputs.tag }}
31
+ TARGET_IMAGE_TAG : ${{ steps.tags.outputs.tag }}
32
+ with :
33
+ OVERWRITE : true
34
+ IMAGE_REPO : ${{ env.IMAGE_REPO_DSPO }}
35
+ DOCKERFILE : Dockerfile
36
+ GH_REPO : ${{ github.repository }}
37
+ - name : Tag latest
38
+ shell : bash
39
+ env :
40
+ IMG : quay.io/${{ env.QUAY_ORG }}/data-science-pipelines-operator
41
+ NEWEST_TAG : ${{ steps.tags.outputs.tag }}
42
+ run : |
43
+ podman tag ${IMG}:${NEWEST_TAG} ${IMG}:latest
44
+ podman push ${IMG}:latest
45
+ podman tag ${IMG}:${NEWEST_TAG} ${IMG}:main
46
+ podman push ${IMG}:main
You can’t perform that action at this time.
0 commit comments