Commit 31ffbe51 authored by Andres Anaya Amariels's avatar Andres Anaya Amariels 🚀
Browse files

artifacts

parent d1ce39f2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ staging_cvs:
    curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b ../
    echo "### grype version###"
    ../grype version
    DIRECTORY=../grype-outputs
    DIRECTORY=./grype-outputs
    if [ ! -d "$DIRECTORY" ]; then
      mkdir $DIRECTORY
      echo "Directory created"
@@ -139,14 +139,14 @@ staging_cvs:
    docker build -t $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG .
    cd $TMP_PWD
    echo "### Container Vulnerability Scanning###"
    ../grype $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG --scope all-layers > ../grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt
    ../grype $CI_REGISTRY/ocf/capif/$CI_COMMIT_REF_SLUG/capif-client:$CI_COMMIT_REF_SLUG --scope all-layers > ./grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt
    echo "----------------------------------------------------"
    cat ../grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt
    cat ./grype-outputs/grype_capif-client-$CI_COMMIT_REF_SLUG.txt

  artifacts:
    untracked: false
    paths:
      - ../grype-outputs/*.txt
      - ./grype-outputs/*.txt
    when: on_success
    expire_in: "1 week"
  <<: *staging_common