Skip to content

Instantly share code, notes, and snippets.

@lucj
Created June 17, 2019 11:06
Show Gist options
  • Save lucj/27eabd46d80d614e4af1f9ad491ae965 to your computer and use it in GitHub Desktop.
Save lucj/27eabd46d80d614e4af1f9ad491ae965 to your computer and use it in GitHub Desktop.
image_scanning_microscanner:
stage: scan
image: docker:stable
services:
- docker:dind
script:
- docker build --build-arg=token=$MICROSCANNER_TOKEN -f Dockerfile.microscanner --no-cache . > microscanner-report.html.tmp
- sed -n '/<html/,/<\/html>/p' microscanner-report.html.tmp > microscanner-report.html
artifacts:
paths: [microscanner-report.html]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment