Skip to content

Commit

Permalink
Only login when building branch
Browse files Browse the repository at this point in the history
  • Loading branch information
xperimental committed Mar 5, 2025
1 parent 1080e06 commit 91fb4d5
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@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
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@v3
if: ${{ github.event_name != 'pull_request' }}
with:
username: xperimental
password: ${{ secrets.DOCKER_TOKEN }}
Expand Down

0 comments on commit 91fb4d5

Please sign in to comment.