Skip to content

Commit

Permalink
chore: Lowercase GitHub repository name in Docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
H1D committed Jul 9, 2024
1 parent d6f5567 commit 03ced13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Lowercase GitHub repository name
run: |
echo "IMAGE_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Build and publish a Docker image for ${{ github.repository }}
uses: docker/build-push-action@v3
with:
context: .
file: ./Containerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.repository }}:latest
tags: ghcr.io/${{ env.IMAGE_NAME }}:latest

0 comments on commit 03ced13

Please sign in to comment.