From a2932996aa7c09cc2486111f7da2b783c281ee6f Mon Sep 17 00:00:00 2001 From: Shroominic Date: Wed, 30 Apr 2025 11:28:23 +0800 Subject: [PATCH] fix --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e48fcea4..acab6dcb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,10 +21,13 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Lowercase and set image tag + run: echo "IMAGE_TAG=ghcr.io/$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]'):latest" >> $GITHUB_ENV + - name: Build and push Docker image uses: docker/build-push-action@v4 with: context: . push: true tags: | - ghcr.io/${{ github.repository }}:latest + ${{ env.IMAGE_TAG }}