From aaa6206388d99b8c2c97964ea1c2bc9c80865257 Mon Sep 17 00:00:00 2001 From: TatLead Date: Sat, 4 Nov 2023 20:17:14 +0800 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1d0f07e..1355e68 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -32,7 +32,5 @@ jobs: with: context: . push: ${{ github.event_name != 'pull_request' }} - tags: | - # set latest tag for main branch - type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} + tags: ${{ github.ref == 'refs/heads/main' && 'latest' || github.ref }} labels: ${{ steps.meta.outputs.labels }}