Skip to content

Commit

Permalink
ci: skip registry login for forks
Browse files Browse the repository at this point in the history
  • Loading branch information
ddlees committed Mar 3, 2025
1 parent 69519fb commit a14bd89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/build-container-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,15 @@ runs:
steps:
- uses: docker/login-action@v3
name: Authenticate with DockerHub Registry
if: ${{ github.event.repository.fork == false }}
with:
registry: docker.io
username: ${{ inputs.dockerhub_account }}
password: ${{ inputs.dockerhub_token }}

- uses: docker/login-action@v3
name: Authenticate with GitHub Container Registry
if: ${{ github.event.repository.fork == false }}
with:
registry: ghcr.io
username: ${{ inputs.ghcr_account }}
Expand Down

0 comments on commit a14bd89

Please sign in to comment.