Commit 91ad6442 authored by John Red Medrano's avatar John Red Medrano

initial

parent 71f0d8c7
Pipeline #280 passed with stages
in 2 minutes
......@@ -63,10 +63,9 @@ buid_dev:
- echo "$CENTOS_SERVER" | ssh-add - > ~/.ssh/id_rsa
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- echo "pulling updates on $dev"
- ssh -tt centos@13.251.192.208 "cd $root_path/$repo_folder && git pull origin $dev"
- ssh -tt centos@13.251.192.208 "docker-compose -f $root_path/$repo_folder/api-main-service/docker-compose.yml down"
- ssh -tt centos@13.251.192.208 "docker-compose -f $root_path/$repo_folder/api-main-service/docker-compose.yml -p xxx_rmsv2_api_container up -d --build"
- ssh -tt centos@13.251.192.208 "cd $root_path/$repo_folder && sudo docker-compose up --build -d"
- ssh -tt centos@13.251.192.208 "cd $root_path/$repo_folder && sudo git pull origin $dev"
- ssh -tt centos@13.251.192.208 "cd $root_path/$repo_folder && docker-compose -f docker-compose.yml -p xxx_rmsv2_api_container down"
- ssh -tt centos@13.251.192.208 "cd $root_path/$repo_folder && docker-compose -f docker-compose.yml -p xxx_rmsv2_api_container up -d --build"
- echo "the $dev branch is successfully updated"
variables:
GIT_STRATEGY: clone
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment