Commit 52b9ea5
Changed files (1)
.gitlab-ci.yml
@@ -41,3 +41,20 @@ examine:
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker run -v /var/run/docker.sock:/var/run/docker.sock $DOCKER_IMAGE clair scan mokhan/minbox:latest --clair_url $CLAIR_URL --ip $(hostname -i)
+
+examine-it:
+ image:
+ name: docker:stable
+ allow_failure: true
+ variables:
+ CLAIR_URL: http://docker:6060
+ DOCKER_DRIVER: overlay2
+ DOCKER_HOST: tcp://docker:2375
+ GIT_STRATEGY: none
+ NO_PROXY: docker,localhost
+ stage: test
+ script:
+ - apk add ruby curl
+ - gem install bundler -v '~> 2.0' --no-document
+ - gem install examine
+ - examine clair scan mokhan/minbox:latest --clair_url $CLAIR_URL --ip $(hostname -i)