From 440adfb57ace4a91f43560749c4ab78085aa25e4 Mon Sep 17 00:00:00 2001 From: "Andre Anundsson (Xenit)" Date: Thu, 10 Apr 2025 14:41:54 +0200 Subject: [PATCH] hotfix pipeline build step --- .github/workflows/container-build-template.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/container-build-template.yml b/.github/workflows/container-build-template.yml index 45bc8e0..f0b908f 100644 --- a/.github/workflows/container-build-template.yml +++ b/.github/workflows/container-build-template.yml @@ -9,6 +9,7 @@ on: tag: type: string required: false + default: latest platforms: type: string required: false @@ -26,9 +27,9 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Convert Repository Name to Lowercase - id: repository_to_lower_case + id: repo_lower run: | - echo "repo_lower=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + echo "repo_lower=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT" - name: Login to GitHub Container Registry if: ${{ inputs.push }} @@ -42,10 +43,10 @@ jobs: id: build-push uses: docker/build-push-action@v6 with: - cache-from: "ghcr.io/${{ steps.repository_to_lower_case.outputs.repo_lower }}/tools:latest" + cache-from: "ghcr.io/${{ steps.repo_lower.outputs.repo_lower }}/tools:latest" file: docker/Dockerfile context: docker - tags: "ghcr.io/${{ steps.repository_to_lower_case.outputs.repo_lower }}/tools:${{ inputs.tag }}" + tags: "ghcr.io/${{ steps.repo_lower.outputs.repo_lower }}/tools:${{ inputs.tag }}" platforms: ${{ inputs.platforms }} push: ${{ inputs.push }}