From a33b774314ac7997376b7ff98b625916fd0fd7d6 Mon Sep 17 00:00:00 2001 From: takatost Date: Tue, 9 Apr 2024 14:35:39 +0800 Subject: [PATCH] fix: latest image tag not push in GitHub action (#3213) --- .github/workflows/build-push.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml index a6cfd6f16..048f4cd94 100644 --- a/.github/workflows/build-push.yml +++ b/.github/workflows/build-push.yml @@ -46,7 +46,7 @@ jobs: with: images: ${{ env[matrix.image_name_env] }} tags: | - type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/') }} + type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} type=ref,event=branch type=sha,enable=true,priority=100,prefix=,suffix=,format=long type=raw,value=${{ github.ref_name }},enable=${{ startsWith(github.ref, 'refs/tags/') }}