-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
25 lines (22 loc) · 764 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
stages:
- build
cache:
paths:
- .m2/repository
- target/
release:
stage: build
image: harbor.contezza.nl/tooling/docker-npm-maven:latest
variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
MAVEN_OPTS: "-Dmaven.repo.local=/data/gitlabrunner-cicd/.m2/repository -Dscript.exec=sh"
script:
- docker login -u $CNTZ_DOCKER_QUAY_USER -p $CNTZ_DOCKER_QUAY_PASSWD quay.io
- docker login -u $CNTZ_DOCKER_HARBOR_USER -p $CNTZ_DOCKER_HARBOR_PASSWD harbor.contezza.nl
- git checkout -B master
- mvn release:prepare release:perform release:clean -Darguments="-DskipTests=true" -Pdocker-build-release $MAVEN_CLI_OPTS
only:
variables:
- $CI_COMMIT_MESSAGE =~ /create-release/
tags:
- cntz-cicd