Update .gitlab-ci.yml

This commit is contained in:
2021-05-05 00:11:04 +00:00
parent 1518e8c395
commit ad399185ad

View File

@@ -124,7 +124,7 @@ trivy:
allow_failure: true
script:
# Build image
- docker build -t $IMAGE ./Docker/
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA ./Docker/
# Build report
- ./trivy --exit-code 0 --cache-dir .trivycache/ --no-progress --format template --template "@contrib/gitlab.tpl" -o gl-container-scanning-report.json $IMAGE
# Print report