diff options
author | fkrzywka <filip.krzywka@nokia.com> | 2018-07-31 09:31:05 +0200 |
---|---|---|
committer | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2018-08-03 10:48:49 +0200 |
commit | 62e9f93985ce734e31cabb83e78fa471d13aaf3e (patch) | |
tree | dbdd0e218b7464124004048f66ee81056aea140a /.gitlab-ci.yml | |
parent | d76905b9c98ec32f17bb9568ff80c04068aa213e (diff) |
Use proxy while publishing docker images on CI
Also fix gitlab-ci syntax
Change-Id: I5e5e1db3888f976640bacc161d703cc6be3ab613
Signed-off-by: fkrzywka <filip.krzywka@nokia.com>
Issue-ID: DCAEGEN2-601
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a1d94acf..c35353b3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,14 +18,18 @@ build: - hv-collector-dcae-app-simulator/target/reports - hv-collector-xnf-simulator/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-image.registry="$DOCKER_REPO_ADDR" deploy + - | + mvn -e -DskipTests -DskipAnalysis \ + -Ddocker-image.registry="$DOCKER_REPO_ADDR" \ + -Ddocker.http_proxy="http://$PROXY_HOST:$PROXY_PORT" \ + -Ddocker.https_proxy="http://$PROXY_HOST:$PROXY_PORT" \ + 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" pages: |