diff options
author | 2018-06-06 13:18:05 +0200 | |
---|---|---|
committer | 2018-08-01 11:20:58 +0200 | |
commit | 0aa02844a2d9806ab30a010b9b5d928d69392579 (patch) | |
tree | 04e5267816bc16e1b8ecec70d975bd04ad46b201 /.gitlab-ci.yml | |
parent | 763b680bea3f5c14e70453845d7670f7ae691e87 (diff) |
Push docker images to a registry
Change-Id: Ife1d98af977a439ef7196caa2cf8fb0968e65fe3
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c1e55541..54bbacf2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,8 @@ image: archive.docker-registry.eecloud.nsn-net.net/imp/matryoshka:latest stages: - build + - publish + - trigger-integration-tests build: stage: build @@ -9,8 +11,16 @@ build: - mvn -e -T2 -Panalysis clean install artifacts: paths: - - hv-collector-coverage/target/site/jacoco-aggregate - - hv-collector-core/target/reports - - hv-collector-main/target/reports - - hv-collector-utils/target/reports + - hv-collector-coverage/target/site/jacoco-aggregate + - hv-collector-core/target/reports + - hv-collector-main/target/reports + - hv-collector-utils/target/reports +publish: + stage: publish + only: + - master + script: + - docker login $DOCKER_REPO_ADDR -u $DOCKER_REPO_USER -p $DOCKER_REPO_PASS + - mvn -e -DskipTests -DskipAnalysis -Ddocker.registry="$DOCKER_REPO_ADDR" deploy + - "curl -X POST -F token=$INTEGRATION_TESTS_TRIGGER_TOKEN -F ref=master https://gitlabe1.ext.net.nokia.com/api/v4/projects/33403/trigger/pipeline" |