Skip to content

Commit

Permalink
fix image-exists github output
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Dec 11, 2023
1 parent c0582e6 commit 42da70b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/build-push-image-with-apko/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ runs:
run: |
set -euo pipefail
if docker manifest inspect ${{ inputs.image-name }} > /dev/null 2>&1; then
echo "image-exists='true'" >> "$GITHUB_ENV"
echo "image-exists=true" >> "$GITHUB_OUTPUT"
else
echo "image-exists='false'" >> "$GITHUB_ENV"
echo "image-exists=false" >> "$GITHUB_OUTPUT"
fi
- uses: chainguard-images/actions/apko-publish@main
if: steps.check-image-exists.outputs.image-exists == 'false'
if: ${{ steps.check-image-exists.outputs.image-exists == 'false' }}
with:
config: ${{ inputs.apko-config }}
archs: x86_64
Expand Down

0 comments on commit 42da70b

Please sign in to comment.