Refactor release workflow to use task for tagging latest image
Some checks failed
Build a dev image / build (push) Failing after 2s
Some checks failed
Build a dev image / build (push) Failing after 2s
This commit is contained in:
parent
306325591d
commit
621b38f263
2 changed files with 4 additions and 1 deletions
|
@ -34,7 +34,7 @@ jobs:
|
|||
- name: Build
|
||||
run: task build REPO=$IMAGE TAG=${{ env.TAG_NAME }}
|
||||
- name: Tag latest
|
||||
run: docker tag $IMAGE:${{ env.TAG_NAME }} $IMAGE:latest
|
||||
run: task tag-latest REPO=$IMAGE TAG=${{ env.TAG_NAME }}
|
||||
- name: Push
|
||||
run: task push REPO=$IMAGE TAG=${{ env.TAG_NAME }}
|
||||
- name: Push latest
|
||||
|
|
|
@ -10,6 +10,9 @@ tasks:
|
|||
build:
|
||||
cmds:
|
||||
- docker build -t {{ .IMAGE }}:{{ .TAG }} .
|
||||
tag-latest:
|
||||
cmds:
|
||||
- docker tag {{ .IMAGE }}:{{ .TAG }} {{ .IMAGE }}:latest
|
||||
push:
|
||||
cmds:
|
||||
- docker push {{ .IMAGE }}:{{ .TAG }}
|
||||
|
|
Loading…
Reference in a new issue