Skip to content

Commit db2a271

Browse files
committed
use standard GITHUB_TOKEN for ghcr.io registry
1 parent 5fb15bf commit db2a271

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/master-latest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
uses: docker/login-action@v1
3434
with:
3535
registry: ghcr.io
36-
username: ${{ secrets.DOCKER_GITHUB_USERNAME }} # github username
37-
password: ${{ secrets.DOCKER_GITHUB_PAT }} # github personal access token for the owner
36+
username: ${{ github.repository_owner }} # github username or org
37+
password: ${{ secrets.GITHUB_TOKEN }} # github actions builtin token. repo has to have pkg access.
3838

3939
- name: Prepare
4040
id: prep
@@ -49,7 +49,7 @@ jobs:
4949
file: ./Dockerfile
5050
platforms: linux/amd64,linux/arm64
5151
push: true
52-
tags: ghcr.io/${{ secrets.DOCKER_GITHUB_USERNAME }}/${{ github.event.repository.name }}:latest,ghcr.io/${{ secrets.DOCKER_GITHUB_USERNAME }}/${{ github.event.repository.name }}:${{ github.sha }}
52+
tags: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest,ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:${{ github.sha }}
5353
labels: |
5454
org.opencontainers.image.title=${{ github.event.repository.name }}
5555
org.opencontainers.image.description=${{ github.event.repository.description }}

0 commit comments

Comments
 (0)