Skip to content

Commit

Permalink
Add environment variable to set lower case owner name
Browse files Browse the repository at this point in the history
  • Loading branch information
arpagon committed Mar 15, 2024
1 parent 1599f36 commit 19c1cec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'

# Build and push Docker image to GitHub Container Registry
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/vocode-next-template:latest
tags: ghcr.io/${{ env.OWNER_LC }}/vocode-next-template:latest

0 comments on commit 19c1cec

Please sign in to comment.