Skip to content

Commit

Permalink
Exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
nickschuch committed Nov 19, 2024
1 parent 3123a2d commit 019869e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,8 @@ security: build
grype ${IMAGE_CLI}-dev-${VERSION_TAG}-${ARCH} --fail-on high; \
cli_exit_code=$$?; \
if [ $$fpm_exit_code -ne 0 ] || [ $$cli_exit_code -ne 0 ]; then \
echo "One or more commands failed."; \
if [ $$fpm_exit_code -ne 0 ]; then \
echo "FPM image has high security findings."; \
exit 1; \
fi; \
if [ $$cli_exit_code -ne 0 ]; then \
echo "CLI image has high security findings."; \
exit 1; \
fi; \
echo "Containers have high security findings."; \
exit 1; \
else \
echo "No high security findings."; \
fi
Expand Down

0 comments on commit 019869e

Please sign in to comment.