diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 173a8cf353a55c4e52db88805a3575a28f4a18a1..f4ec3f5c8079919c395b4567ea8eba7aec0a4ff8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -130,8 +130,11 @@ docker-build: - eval "$(ssh-agent -s)" - ssh-add ~/.ssh/id_rsa - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config + variables: + REGISTRY_URL: sharing-codeability.uibk.ac.at:5051 + IMAGE_TAG: sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform script: - - ssh contDeploy@codeability-austria -p 1022 "cd /gitsearch2/gitsearch && git pull && ./mvnw -Dmaven.test.failure.ignore=true package jib:dockerBuild" + - ssh contDeploy@codeability-austria -p 1022 "cd /gitsearch2/gitsearch && git pull && ./mvnw verify -Pprod -DskipTests jib:build -Djib.to.image=$IMAGE_TAG -Djib.to.auth.username=gitlab-ci-token -Djib.to.auth.password=$CI_BUILD_TOKEN -Dmaven.repo.local=$MAVEN_USER_HOME" when: on_success # This pipeline step does not work with nfs file system