From 4faae28e3aa0ee24f142b65bf0772370e2c6ecfe Mon Sep 17 00:00:00 2001 From: Isis Ebsen Date: Wed, 25 Oct 2023 14:34:36 +0530 Subject: [PATCH] ensure repo name is lowercase for docker builds --- .github/workflows/docker.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4b1c47b..af5ad3b 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -21,6 +21,10 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: lowerify repository name + id: lowerify + run: | + echo "repository=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT" - name: build and push uses: docker/bake-action@v3 with: @@ -32,4 +36,4 @@ jobs: server.cache-to=type=gha,mode=max env: TAG: ${{ steps.short-sha.outputs.tag }} - IMAGE_NAME: ghcr.io/${{ github.repository }} + IMAGE_NAME: ghcr.io/${{ steps.lowerify.outputs.repository }}