Skip to content

Commit

Permalink
Changed build username to repository owner instead of commit pusher
Browse files Browse the repository at this point in the history
`github.actor` was preventing the Docker image from being pushed by anyone other than the repository owner. `github.repository_owner` works with both commits in the main repository as well as on forks.
  • Loading branch information
Snaacky committed Jul 8, 2022
1 parent 1685f54 commit 883a829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: whoan/docker-build-with-cache-action@v5
with:
registry: ${{ env.REPOSITORY }}
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
image_name: ${{ env.IMAGE_NAME }}
image_tag: ${{ steps.prep.outputs.version }}

0 comments on commit 883a829

Please sign in to comment.