Skip to content

Commit

Permalink
refactor(docker-build-push.yaml): improve repository name handling by…
Browse files Browse the repository at this point in the history
… setting lowercase repository name as env variable
  • Loading branch information
ozeliurs committed Oct 7, 2024
1 parent 2d43d04 commit b2e307d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set lowercase repository name
run: echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

Expand All @@ -33,5 +36,5 @@ jobs:
context: ./build-base
file: ./build-base/Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner | lower }}/${{ github.event.repository.name | lower }}/base:latest
tags: ghcr.io/${{ env.REPO_LOWERCASE }}/base:latest
platforms: linux/amd64,linux/arm64

0 comments on commit b2e307d

Please sign in to comment.