Skip to content

Commit

Permalink
ci: publish docker image using GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
aceforeverd committed May 17, 2021
1 parent 01aa1c7 commit 2a1e203
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:

- name: Log into registry
if: github.event_name == 'push'
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push image
if: github.event_name == 'push'
Expand Down

0 comments on commit 2a1e203

Please sign in to comment.