From 68feea7611343eac71b90e19b5c6d71e91562523 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 27 Apr 2026 10:44:47 +0800 Subject: [PATCH] Fix docker workflow tag issue --- .github/workflows/docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0dd9948..a601fe1 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -7,7 +7,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: cmakecpp/sale jobs: build-and-push: @@ -37,7 +37,7 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=ref,event=branch - type=sha,prefix= + type=sha type=raw,value=latest,enable={{is_default_branch}} - name: Build and push image @@ -46,7 +46,7 @@ jobs: context: . file: ./backend/Dockerfile push: true - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max