From fcc60c0762ff640f711b9e9eea99c40e2cc0c820 Mon Sep 17 00:00:00 2001 From: O96u Date: Sat, 22 Aug 2026 14:41:24 +0800 Subject: [PATCH] ci: use 1.0.0 and latest Docker tags for ghcr.io and Docker Hub Drop v-prefixed image tags; version tags apply to both registries on release. --- .github/workflows/docker-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index ac17467..639e710 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -65,11 +65,11 @@ jobs: id: meta uses: docker/metadata-action@v5 with: + # Same tags for ghcr.io and Docker Hub: latest + 1.0.0 (no v prefix) images: ${{ steps.images.outputs.list }} tags: | - type=raw,value=latest,enable={{is_default_branch}} + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} type=semver,pattern={{version}} - type=semver,pattern=v{{version}} - name: Build and push uses: docker/build-push-action@v6