From f500803c0609f156672e9673f290a94894c6961f Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Mon, 14 Nov 2022 18:25:38 -0800 Subject: [PATCH] docker/build-push-action requires all lowercase (#7) --- action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2e68788..28556c3 100644 --- a/action.yml +++ b/action.yml @@ -111,13 +111,20 @@ runs: username: ${{ github.actor }} password: ${{ inputs.token }} + - name: Force lowercase for Docker + shell: bash + id: lowercase + run: | + TAGS=$( echo "ghcr.io/${{ github.repository }}/${{ inputs.package }}:${{ inputs.tag }}" | tr '[:upper:]' '[:lower:]' ) + echo "tags=${TAGS}" >> $GITHUB_OUTPUT + - name: Build and push ${{ inputs.package }} Docker image if: steps.check.outputs.build == 'true' uses: docker/build-push-action@v3 with: context: ./${{ inputs.package }}/ push: true - tags: ghcr.io/${{ github.repository }}/${{ inputs.package }}:${{ inputs.tag }} + tags: ${{ steps.lowercase.outputs.tags }} cache-from: type=gha cache-to: type=gha,mode=max