Commit b47561e

mo <mo.khan@gmail.com>
2019-07-24 21:05:36
docker pull image
1 parent f5a6300
Changed files (1)
.gitlab-ci.yml
@@ -38,4 +38,6 @@ examine:
     CLAIR_URL: http://docker:6000
   stage: test
   script:
+    - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
+    - docker pull $DOCKER_IMAGE
     - 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)