Skip to content

Commit

Permalink
feat: remove push constraint for ghcr override
Browse files Browse the repository at this point in the history
Presence of ghcr override inputs is sufficient to allow login.
  • Loading branch information
wilsonjord authored and BobyMCbobs committed Oct 2, 2023
1 parent ca62755 commit 3894d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ jobs:
env:
registryGhcrUsernameOverride: ${{ inputs.registryGhcrUsernameOverride }}
registryGhcrPasswordOverride: ${{ secrets.GH_CI_USER_TOKEN }}
if: ${{ inputs.push == true && env.registryGhcrUsernameOverride != '' && env.registryGhcrPasswordOverride != '' }}
if: ${{ env.registryGhcrUsernameOverride != '' && env.registryGhcrPasswordOverride != '' }}
run: |
echo "${{ env.registryGhcrPasswordOverride }}" | crane auth login ghcr.io -u ${{ env.registryGhcrUsernameOverride }} --password-stdin
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
Expand Down

0 comments on commit 3894d12

Please sign in to comment.