Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Unverified Commit df2fd457 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

use global docker settings only

parent 38641955
Pipeline #23525 passed with stage
in 4 minutes and 47 seconds
stages:
- test-build
- publish-image
variables:
DOCKER_TLS_CERTDIR: ""
- publish
test:
stage: test-build
......@@ -16,35 +13,7 @@ test:
script:
- sbt test compile
.build-image:
stage: publish-image
image: docker:stable
services:
- docker:dind
script:
#- docker login -u '$CI_REGISTRY_USER' -p '$CI_REGISTRY_PASSWORD' '$REGISTRY'
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker build --pull -t "$IMAGE_TAG" .
- docker push "$IMAGE_TAG"
- docker logout
build-tagged-image:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
only:
- tags
build-latest-image:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest"
only:
- master
build-develop-image:
extends: .build-image
variables:
IMAGE_TAG: "$CI_REGISTRY_IMAGE:develop"
only:
- develop
include:
- project: 'memoriav/memobase-2020/utilities/ci-templates'
ref: modular
file: 'docker/default.yml'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment