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

Commit 1e384be7 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

use global gitlab-ci settings for sbt / docker

parent 774d760a
Pipeline #23518 failed with stages
in 3 minutes and 19 seconds
stages:
- test-build
- publish-image
variables:
DOCKER_TLS_CERTDIR: ""
test:
stage: test-build
except:
- master
- tags
image: hseeberger/scala-sbt:8u252_1.3.12_2.13.2
tags:
- mbr
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
- test
- build
- publish
include:
- project: 'memoriav/memobase-2020/utilities/ci-templates'
ref: modular
file: 'sbt/default.yml'
- 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