From 49010a41acb546e764e3e72fd9095e6e382ba16e Mon Sep 17 00:00:00 2001 From: totegamma Date: Fri, 19 Jul 2024 21:11:05 +0900 Subject: [PATCH] update docker-publish.yml --- .github/workflows/docker-publish.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 1086d3f6..e78da149 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -61,6 +61,9 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Get tag + run: echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV + # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action - name: Extract Docker metadata @@ -68,9 +71,9 @@ jobs: uses: docker/metadata-action@v4 with: images: ${{ matrix.image }} - - - name: Get tag - run: echo "TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV + tags: | + type=raw,value=latest,enable=${{ !contains(env.TAG, 'beta') }} + type=semver,pattern={{raw}} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action