From 034996836e2d164831b9f4a1e5f2fbd66669be22 Mon Sep 17 00:00:00 2001 From: Dominik Date: Sun, 20 Jun 2021 13:01:58 +0200 Subject: [PATCH] Workflow fix --- .github/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0eaf39b..359f4de 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,17 +13,23 @@ jobs: uses: docker/setup-buildx-action@v1 - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v1 with: registry: ghcr.io - repository: ${{github.repository}} username: ${{github.repository_owner}} password: ${{ secrets.GITHUB_TOKEN }} + + - name: Lowercase repository + run: | + echo "REPO_LC=${REPO,,}" >> ${GITHUB_ENV} + env: + REPO: '${{ github.repository }}' + - name: Build and push id: docker_build uses: docker/build-push-action@v2 with: push: true - tags: ghcr.io/${{github.repository}}:latest \ No newline at end of file + tags: ghcr.io/${{ env.REPO_LC }}:latest \ No newline at end of file