Skip to content

Commit

Permalink
Do not run login actions in pull-request build (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
xperimental authored Feb 28, 2024
1 parent 9e6f835 commit d499c07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' }}
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Docker hub
uses: docker/login-action@v2
if: ${{ github.event_name != 'pull_request' }}
with:
username: xperimental
password: ${{ secrets.DOCKER_TOKEN }}
Expand Down

0 comments on commit d499c07

Please sign in to comment.