Setup docker:dind

This commit is contained in:
Matthew McKinnon 2022-08-07 14:10:28 +10:00
parent a73c19b786
commit 16e54eebcf

View File

@ -16,8 +16,12 @@ build-eleventy:
only: only:
- master - master
services:
- docker:dind
docker-build: docker-build:
stage: docker-build stage: docker-build
image: docker:latest
script: 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
- docker build --pull -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG . - docker build --pull -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .