Skip to content

Commit

Permalink
feat(build): add trivy to sec (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfalkowski authored Nov 7, 2023
1 parent 3c57f5f commit ae898b7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/docker/build
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -e

# Build docker.
docker build --build-arg version="latest" -t alexfalkowski/"$1" .
docker build --build-arg version="latest" -t alexfalkowski/"$1":test .
4 changes: 4 additions & 0 deletions build/make/service.mak
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ build-docker:
push-docker:
bin/build/docker/push $(NAME)

# Verify using trivy.
trivy:
build/sec/trivy $(NAME)

# Start the environment.
start:
bin/build/docker/env start
Expand Down
7 changes: 7 additions & 0 deletions build/sec/trivy
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -e

# Scan using trivy.
trivy repo ./
trivy image "alexfalkowski/$1:test"

0 comments on commit ae898b7

Please sign in to comment.