From 9b41aaf4bc708fa3ed320a544e28d0c0eefadb79 Mon Sep 17 00:00:00 2001 From: "Andre Anundsson (Xenit)" Date: Thu, 10 Apr 2025 14:06:59 +0200 Subject: [PATCH] hotfix pipeline build step --- .github/workflows/container-build-template.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/container-build-template.yml b/.github/workflows/container-build-template.yml index 9a2d7c7..45bc8e0 100644 --- a/.github/workflows/container-build-template.yml +++ b/.github/workflows/container-build-template.yml @@ -25,6 +25,11 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Convert Repository Name to Lowercase + id: repository_to_lower_case + run: | + echo "repo_lower=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + - name: Login to GitHub Container Registry if: ${{ inputs.push }} uses: docker/login-action@v3 @@ -37,10 +42,10 @@ jobs: id: build-push uses: docker/build-push-action@v6 with: - cache-from: "ghcr.io/${{ github.repository }}/tools:latest" + cache-from: "ghcr.io/${{ steps.repository_to_lower_case.outputs.repo_lower }}/tools:latest" file: docker/Dockerfile context: docker - tags: "ghcr.io/${{ github.repository_owner }}/${{ github.repository }}/tools:${{ inputs.tag }}" + tags: "ghcr.io/${{ steps.repository_to_lower_case.outputs.repo_lower }}/tools:${{ inputs.tag }}" platforms: ${{ inputs.platforms }} push: ${{ inputs.push }} @@ -48,6 +53,6 @@ jobs: if: ${{ inputs.push }} uses: actions/attest-build-provenance@v2 with: - subject-name: ghcr.io/${{ github.repository }} + subject-name: ghcr.io/${{ steps.repository_to_lower_case.outputs.repo_lower }} subject-digest: ${{ steps.build-push.outputs.digest }} push-to-registry: true \ No newline at end of file