Skip to content

Commit

Permalink
Update config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rfaircloth-splunk committed Oct 7, 2019
1 parent d7f0161 commit ae0e0bb
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
version: 2.1

orbs:
clair_scanner: ovotech/clair-scanner@1
snyk: snyk/snyk@0.0.8

jobs:
build:
Expand Down Expand Up @@ -149,23 +149,17 @@ jobs:
- store_test_results:
path: test-results
test-scan_images:
docker:
- image: 'circleci/buildpack-deps:stretch'
environment:
IMAGE_NAME: rfaircloth/scs
executor: clair_scanner/default
steps:
- clair_scanner/scan:
image: $IMAGE_NAME:$CIRCLE_SHA1
whitelist: clair-whitelist.yml
- run:
command: |
mkdir -p /root/project/test-results
pip install -r requirements.txt
python clair_to_junit_parser.py "/clair-reports/$IMAGE_NAME:$CIRCLE_SHA1.json" --output test-results/results.xml
when: on_fail
- store_test_results:
path: test-results/results.xml
- store_artifacts:
path: /clair-reports
- checkout
- setup_remote_docker
- run: docker pull $IMAGE_NAME:$CIRCLE_SHA1
- snyk/scan:
docker-image-name: $IMAGE_NAME:$CIRCLE_SHA1


publish-common:
machine:
Expand Down

0 comments on commit ae0e0bb

Please sign in to comment.