Skip to content

Commit

Permalink
Owner and repository name to lowercase.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daranix committed Jun 25, 2023
1 parent 570b0a3 commit f96b09e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set Owner name to LowerCase
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
echo "REPOSITORY_LC=${REPOSITORY,,}" >>${GITHUB_ENV}
env:
OWNER: "${{ github.repository_owner }}"
REPOSITORY: "${{ github.repository }}"

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:latest
tags: ghcr.io/${OWNER_LC}/${REPOSITORY_LC}:latest

0 comments on commit f96b09e

Please sign in to comment.