From 7ecb97e2e1a2b3dcb120db35367a23f9c0cf7f93 Mon Sep 17 00:00:00 2001 From: ellermister <23046078+ellermister@users.noreply.github.com> Date: Sun, 26 Nov 2023 15:09:16 +0800 Subject: [PATCH] Change docker-publish.yml --- .github/workflows/docker-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a55a969..588ca78 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -52,6 +52,9 @@ jobs: uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=semver,pattern={{version}} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action