mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 06:22:53 +00:00
ci: adapt docker:dind scheme and update base image
This commit is contained in:
@@ -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 .
|
||||||
|
|||||||
Reference in New Issue
Block a user