From df15f00243be951200eaba6265da852cd6655541 Mon Sep 17 00:00:00 2001 From: Debanjum <debanjum@gmail.com> Date: Tue, 17 Dec 2024 13:12:46 -0800 Subject: [PATCH] Tag docker images with latest tag in dockerize workflow on release --- .github/workflows/dockerize.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dockerize.yml b/.github/workflows/dockerize.yml index eae321aad..1321982d5 100644 --- a/.github/workflows/dockerize.yml +++ b/.github/workflows/dockerize.yml @@ -135,6 +135,7 @@ jobs: run: | docker buildx imagetools create \ -t ghcr.io/${{ github.repository }}:${{ env.DOCKER_IMAGE_TAG }} \ + -t ghcr.io/${{ github.repository }}:${{ github.ref_type == 'tag' && 'latest' || env.DOCKER_IMAGE_TAG }} \ ghcr.io/${{ github.repository }}:${{ env.DOCKER_IMAGE_TAG }}-amd64 \ ghcr.io/${{ github.repository }}:${{ env.DOCKER_IMAGE_TAG }}-arm64 @@ -143,5 +144,6 @@ jobs: run: | docker buildx imagetools create \ -t ghcr.io/${{ github.repository }}-cloud:${{ env.DOCKER_IMAGE_TAG }} \ + -t ghcr.io/${{ github.repository }}-cloud:${{ github.ref_type == 'tag' && 'latest' || env.DOCKER_IMAGE_TAG }} \ ghcr.io/${{ github.repository }}-cloud:${{ env.DOCKER_IMAGE_TAG }}-amd64 \ ghcr.io/${{ github.repository }}-cloud:${{ env.DOCKER_IMAGE_TAG }}-arm64