From dfea1166e159c12092435d9ca397b515d936d159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Wed, 9 Oct 2024 11:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20ref=5Ftype?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15c86bf..3b4bc3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,13 +37,12 @@ jobs: with: build_file: ./docker-build-push/Dockerfile build_platforms: linux/amd64 - build_push: ${{ github.ref == 'refs/heads/main' }} + build_push: ${{ github.ref_type == 'tag' }} build_load: true metadata_images: | docker.io/${{ vars.DOCKERHUB_USERNAME }}/docker-example ghcr.io/${{ github.repository }} metadata_tags: | - type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }} type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}