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 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
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 }}
You can’t perform that action at this time.
0 commit comments