Skip to content

Commit

Permalink
Ensure step conditions are respected (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck authored Aug 28, 2024
1 parent 6ccddb4 commit 141c6a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions actions/publish-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ runs:
# Short-circuit if either fails. This should decrease the likelihood
# of only one registry getting updated while the other fails.
- name: Login to registry [Public]
if: ${{ inputs.push-to-public }}
if: ${{ inputs.push-to-public == true || inputs.push-to-public == 'true' }}
uses: docker/login-action@v3
with:
registry: ${{ inputs.public-registry }}
username: ${{ inputs.public-username }}
password: ${{ inputs.public-password }}

- name: Login to registry [Prime]
if: ${{ inputs.push-to-prime }}
if: ${{ inputs.push-to-prime == true || inputs.push-to-prime == 'true' }}
uses: docker/login-action@v3
with:
registry: ${{ inputs.prime-registry }}
Expand All @@ -155,7 +155,7 @@ runs:

- name: Build and push image [Public]
shell: bash
if: ${{ inputs.push-to-public }}
if: ${{ inputs.push-to-public == true || inputs.push-to-public == 'true' }}
run: |
make ${{ inputs.make-target }}
env:
Expand All @@ -165,7 +165,7 @@ runs:

- name: Build and push image [Prime]
shell: bash
if: ${{ inputs.push-to-prime }}
if: ${{ inputs.push-to-prime == true || inputs.push-to-prime == 'true' }}
run: |
IID_FILE=$(mktemp)
export IID_FILE_FLAG="--iidfile ${IID_FILE}"
Expand Down

0 comments on commit 141c6a0

Please sign in to comment.