File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33
33
uses : docker/login-action@v1
34
34
with :
35
35
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.
38
38
39
39
- name : Prepare
40
40
id : prep
49
49
file : ./Dockerfile
50
50
platforms : linux/amd64,linux/arm64
51
51
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 }}
53
53
labels : |
54
54
org.opencontainers.image.title=${{ github.event.repository.name }}
55
55
org.opencontainers.image.description=${{ github.event.repository.description }}
You can’t perform that action at this time.
0 commit comments