Use dind to build container
This commit is contained in:
parent
c07841b7d2
commit
9d4c6739cb
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,8 @@ deploy:
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
stage: deploy
|
stage: deploy
|
||||||
dependencies:
|
dependencies:
|
||||||
- build
|
- build
|
||||||
|
@ -73,6 +75,7 @@ container:
|
||||||
- master
|
- master
|
||||||
variables:
|
variables:
|
||||||
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
|
||||||
|
DOCKER_BUILDKIT: 1
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
script:
|
script:
|
||||||
|
|
Loading…
Reference in a new issue