Skip to content
Snippets Groups Projects
Verified Commit b0988002 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

try to use dind service

parent 84c20a1b
Branches
Tags
No related merge requests found
......@@ -189,12 +189,14 @@ ci-test-image-retag:
- when: always
interruptible: true
image: docker:19.03.12
services:
- docker:19.03.12-dind
script:
- |
# If docker image for this branch does not exist, pull the master image
# and push it tagged as the image for the current branch
if ! docker pull ${CI_REGISTRY_IMAGE}${KANIKO_BUILD_IMAGENAME}:${CI_COMMIT_REF_SLUG}; then
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > $HOME/.docker/config.json
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
docker pull ${CI_REGISTRY_IMAGE}${KANIKO_BUILD_IMAGENAME}:master;
docker tag ${CI_REGISTRY_IMAGE}${KANIKO_BUILD_IMAGENAME}:master ${CI_REGISTRY_IMAGE}${KANIKO_BUILD_IMAGENAME}:${CI_COMMIT_REF_SLUG}
docker push ${CI_REGISTRY_IMAGE}${KANIKO_BUILD_IMAGENAME}:${CI_COMMIT_REF_SLUG}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment