Commit 908fcaa9 authored by Adam Cohen's avatar Adam Cohen

Move DinD to job level in CS docs

parent f93290b5
...@@ -117,9 +117,6 @@ push it to the Container Registry, and run Container Scanning: ...@@ -117,9 +117,6 @@ push it to the Container Registry, and run Container Scanning:
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
services:
- docker:19.03.8-dind
stages: stages:
- build - build
- test - test
...@@ -127,6 +124,8 @@ stages: ...@@ -127,6 +124,8 @@ stages:
build: build:
image: docker:stable image: docker:stable
stage: build stage: build
services:
- docker:19.03.8-dind
variables: variables:
IMAGE: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA IMAGE: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
script: script:
...@@ -286,14 +285,13 @@ this with a pipeline means you won't have to do it manually each time. You can u ...@@ -286,14 +285,13 @@ this with a pipeline means you won't have to do it manually each time. You can u
```yaml ```yaml
image: docker:stable image: docker:stable
services:
- docker:19.03.8-dind
stages: stages:
- build - build
build_latest_vulnerabilities: build_latest_vulnerabilities:
stage: build stage: build
services:
- docker:19.03.8-dind
script: script:
- docker pull arminc/clair-db:latest - docker pull arminc/clair-db:latest
- docker tag arminc/clair-db:latest $CI_REGISTRY/namespace/clair-vulnerabilities-db - docker tag arminc/clair-db:latest $CI_REGISTRY/namespace/clair-vulnerabilities-db
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment