Skip to content

Commit

Permalink
Add login for ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Mar 22, 2022
1 parent b2ae69b commit 9212798
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Login to GitHub Container Registry
if: contains(steps.determine.outputs.tags, 'ghcr.io')
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
Expand Down

0 comments on commit 9212798

Please sign in to comment.