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