Refactor release workflow to use task for tagging latest image
Some checks failed
Build a dev image / build (push) Failing after 2s

This commit is contained in:
Adam Štrauch 2025-09-28 12:48:56 +02:00
parent 306325591d
commit 621b38f263
Signed by: cx
GPG key ID: 7262DAFE292BCE20
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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 }}