Skip to content

Commit

Permalink
echo image exists output
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Dec 11, 2023
1 parent 02e450c commit a0520b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/build-push-image-with-apko/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ runs:
run: |
set -euo pipefail
if docker manifest inspect ${{ inputs.image-name }} > /dev/null 2>&1; then
echo "Image already exists. Will not overwrite."
echo "image-exists=true" >> "$GITHUB_OUTPUT"
else
echo "Image does not exist. Will build and push."
echo "image-exists=false" >> "$GITHUB_OUTPUT"
fi
Expand Down

0 comments on commit a0520b0

Please sign in to comment.