File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 6
6
push_to_registry :
7
7
name : Push Docker image to GitHub Packages
8
8
runs-on : ubuntu-latest
9
+ env :
10
+ DOCKER_REPO : ghcr.io/spotify/flink-operator
9
11
steps :
10
12
- name : Check out the repo
11
13
uses : actions/checkout@v2
12
14
- name : Prepare
13
15
id : prep
14
16
run : |
15
- DOCKER_IMAGE=ghcr.io/spotify/flink-operator:${GITHUB_SHA::8}
16
- echo ::set-output name=image::${DOCKER_IMAGE}
17
+ echo ::set-output name=image::${DOCKER_REPO}:${GITHUB_REF/refs\/tags\//}
17
18
- name : Login to Github container registry
18
19
19
20
with :
24
25
run : make operator-image push-operator-image
25
26
env :
26
27
IMG : ${{ steps.prep.outputs.image }}
28
+ - name : Tag latest
29
+ run : docker tag ${{ steps.prep.outputs.image }} ${DOCKER_REPO}:latest
30
+ - name : Push latest
31
+ run : docker push ${DOCKER_REPO}:latest
You can’t perform that action at this time.
0 commit comments