Commit 54cb0957 authored by Thomas Boni's avatar Thomas Boni
Browse files

do not build image in trivy job

parent d2f67c3f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -46,11 +46,7 @@ trivy:
    - curl -sSL -o $TEMPLATE_NAME https://github.com/aquasecurity/trivy/raw/v${TRIVY_VERSION}/contrib/junit.tpl

  script:
    - docker info
    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
    - docker build -t $IMAGE .
    - docker push $IMAGE

    - ./trivy --template "@$TEMPLATE_NAME" -o $TRIVY_OUTPUT $IMAGE

  cache: