Skip to content

Commit

Permalink
docker/build-push-action requires all lowercase (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Nov 15, 2022
1 parent 47a531b commit f500803
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f500803

Please sign in to comment.