diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 910d918..fcb25e9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,6 @@ stages: # List of stages for jobs, and their order of execution - build - docker - deploy - - trigger variables: @@ -63,10 +62,3 @@ deploy-job: # Deploy docker image on ssh server - ssh $SSH_USER@$SERVER_IP "docker container rm -f $Docker_name || true" - ssh $SSH_USER@$SERVER_IP "docker run -it -d --name $Docker_name -e PROJEKTNAME_UNIQUE='$Project_name:$CI_JOB_ID' -e PROJEKTNAME='$Project_name' -e HOSTNAME=$EUREKA_HOSTNAME -e EUREKAPORT=$EUREKA_PORT -e server.port=$CONFIG_PORT -e CONFIGPORT=$CONFIG_PORT -e KEY='$CONFIG_KEY' -e CONFIGURL='$CONFIG_URL' -e CONFIGUSER='$CONFIG_USER' -e CONFIGHTTP=$CONFIG_HTTP -p $PORT_HOST:$PORT_CONTAINER $DOCKER_URL/$TAG_LATEST" -trigger_job: - stage: trigger - trigger: - project: bsc/todo-service - forward: # I nested this keyword under trigger - yaml_variables: false # this is the current/default behavior - pipeline_variables: false # with this, pipeline UI variables are passed