ci: adapt docker:dind scheme and update base image

This commit is contained in:
Rainer Killinger
2018-12-11 12:14:00 +00:00
parent b64e9063a3
commit e134778aa2

View File

@@ -1,12 +1,14 @@
image: docker:stable image: registry.gitlab.com/openstapps/projectmanagement/builder
stages: stages:
- publish - publish
publish:version: publish:version:
stage: publish stage: publish
artifacts: variables:
untracked: true DOCKER_DRIVER: overlay2
services:
- docker:dind
script: script:
- export CI_BUILD_SEM_VERSION=$(echo -n "$CI_BUILD_REF_NAME" | cut -c 2-) - export CI_BUILD_SEM_VERSION=$(echo -n "$CI_BUILD_REF_NAME" | cut -c 2-)
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
@@ -23,8 +25,10 @@ publish:version:
publish:branch: publish:branch:
stage: publish stage: publish
artifacts: variables:
untracked: true DOCKER_DRIVER: overlay2
services:
- docker:dind
script: script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME . - docker build -t $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME .