Skip to content

Commit

Permalink
Workflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
d-bend committed Jun 20, 2021
1 parent 4048e2f commit 0349968
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,23 @@ jobs:
uses: docker/setup-buildx-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
registry: ghcr.io
repository: ${{github.repository}}
username: ${{github.repository_owner}}
password: ${{ secrets.GITHUB_TOKEN }}


- name: Lowercase repository
run: |
echo "REPO_LC=${REPO,,}" >> ${GITHUB_ENV}
env:
REPO: '${{ github.repository }}'

-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/${{github.repository}}:latest
tags: ghcr.io/${{ env.REPO_LC }}:latest

0 comments on commit 0349968

Please sign in to comment.