Skip to content

Commit

Permalink
ensure repo name is lowercase for docker builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lmaotrigine committed Oct 25, 2023
1 parent b7915f6 commit 4faae28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: lowerify repository name
id: lowerify
run: |
echo "repository=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
- name: build and push
uses: docker/bake-action@v3
with:
Expand All @@ -32,4 +36,4 @@ jobs:
server.cache-to=type=gha,mode=max
env:
TAG: ${{ steps.short-sha.outputs.tag }}
IMAGE_NAME: ghcr.io/${{ github.repository }}
IMAGE_NAME: ghcr.io/${{ steps.lowerify.outputs.repository }}

0 comments on commit 4faae28

Please sign in to comment.