Skip to content

Commit

Permalink
fix: prevent registry operations when not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
stigok committed Jun 19, 2023
1 parent df95664 commit 00d412a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,15 @@ jobs:
type=raw,value=latest,enable=${{ inputs.tag-latest }}
${{ steps.additional-tags.outputs.tags }}
-
if: inputs.push
if: inputs.push && steps.setup.outputs.docker_login == 'yes'
name: Docker login
uses: docker/login-action@v2
with:
registry: ${{ inputs.registry-url }}
username: ${{ secrets.registry-username }}
password: ${{ secrets.registry-password }}
-
if: inputs.push
if: inputs.push && steps.setup.outputs.docker_login == 'yes'
name: Push tags
id: push
run: |
Expand Down

0 comments on commit 00d412a

Please sign in to comment.