From a16f233148da6e29a76ddcf3f203aeac401e3006 Mon Sep 17 00:00:00 2001 From: Vojtech Vitek Date: Sun, 15 Oct 2023 14:40:16 +0200 Subject: [PATCH] Build ghcr.io/golang-cz/static-analysis:latest along with specific docker tag --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4d800d..36bb29a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,5 +24,6 @@ jobs: PULL_REQUEST_ID=${{ github.event.number }} export COMMIT="$(git log -1 --pretty=format:'%h')" export VERSION="$(date -d @$(git log -n1 --format=%at) +'v%-y.%-m.%-d')-${COMMIT}${PULL_REQUEST_ID:+-PR-$PULL_REQUEST_ID}" - docker build -t ghcr.io/golang-cz/static-analysis:$VERSION . + docker build -t ghcr.io/golang-cz/static-analysis:$VERSION -t ghcr.io/golang-cz/static-analysis:latest . docker push ghcr.io/golang-cz/static-analysis:$VERSION + docker push ghcr.io/golang-cz/static-analysis:latest