From 5fdd657ab90389fba57ffcf975890a1fc9b40d65 Mon Sep 17 00:00:00 2001 From: Markus Kuuse Date: Sat, 26 Oct 2024 19:26:15 +0300 Subject: [PATCH] third way --- .github/workflows/release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c9d0087..fad84d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,6 +85,11 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Convert repository name to lowercase + run: | + REPO_LC=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') + echo "REPO_LC=$REPO_LC" >> $GITHUB_ENV + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -95,8 +100,8 @@ jobs: context: . push: true tags: | - ghcr.io/${{ github.repository@L }}:latest - ghcr.io/${{ github.repository@L }}:${{ github.event.release.tag_name }} + ghcr.io/${{ env.REPO_LC }}:latest + ghcr.io/${{ env.REPO_LC }}:${{ github.event.release.tag_name }} cache-from: type=gha cache-to: type=gha,mode=max platforms: linux/amd64,linux/386