Skip to content

Commit

Permalink
feat: add trivy image scan
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Apr 22, 2024
1 parent 16949a3 commit ba31717
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ DOCKER_BUILDKIT=1 docker build "$project_root" \
"$@"


#################################################
# perform security audit
#################################################
if [[ "${DOCKER_AUDIT_IMAGE:-1}" == 1 ]]; then
bash "$shared_lib/cmd/audit-image.sh" $image_name
fi


#################################################
# push image with tags to remote docker image registry
#################################################
Expand Down

0 comments on commit ba31717

Please sign in to comment.