Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #14 from govCMS/feature/govcms-5399-dind-cache
Browse files Browse the repository at this point in the history
[GOVCMS-5399] Use local dind image
  • Loading branch information
stooit authored Nov 4, 2020
2 parents 568ed17 + 7b574e7 commit 2ac6ce4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
image: gitlab-registry-production.govcms.amazee.io/govcms/govcms-ci:latest
services:
- docker:dind
- gitlab-registry-production.govcms.amazee.io/govcms/govcms-ci/dind:latest

stages:
- build
Expand All @@ -14,6 +14,10 @@ build:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -f govcms-ci.Dockerfile -t $CI_REGISTRY/govcms/govcms-ci:${IMAGE_TAG} .
- docker push $CI_REGISTRY/govcms/govcms-ci:${IMAGE_TAG}
# Refresh internal docker:dind image.
- docker pull docker:dind
- docker tag docker:dind $CI_REGISTRY/govcms/govcms-ci/dind:latest
- docker push $CI_REGISTRY/govcms/govcms-ci/dind:latest
variables:
DOCKER_HOST: tcp://localhost:2375
only:
Expand Down

0 comments on commit 2ac6ce4

Please sign in to comment.