Commit 7a690a21 authored by Andres Anaya Amariels's avatar Andres Anaya Amariels 🚀
Browse files

grype

parent b1c737ca
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -120,14 +120,16 @@ staging_cvs:
  needs: ["staging_linting_docker"]
  stage: staging_cvs
  script: 
   - curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
   - curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b ../
   - echo "### grype version###"
   - ../grype version
   - export TMP_PWD=$PWD
   - echo "TMP_PWD=$TMP_PWD"
   - echo "### build and push capif-client image###"
   - cd services/capif-client/
   - docker login --username $CI_REGISTRY_USER --password $CAPIF_DOCKER_REGISTRY $CI_REGISTRY
   - docker build -t $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG .
   - grype $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG --scope all-layers
   - ../grype $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG --scope all-layers
   - echo "----------------------------------------------------"
  <<: *staging_common