Skip to content

Commit

Permalink
Switch to using GITHUB_TOKEN for GHCR auth
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdp committed Nov 7, 2022
1 parent 4d4ecc2 commit eaed464
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ jobs:
- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME

- name: Log into registry
#run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push image
run: |
Expand Down

0 comments on commit eaed464

Please sign in to comment.