bikram-cloud / Kddi_work

some document
0 stars 0 forks source link

docker_jenkins_pipeline_deploy #2

Open bikram-cloud opened 4 years ago

bikram-cloud commented 4 years ago

jenkinsとgithubの連携方法(build-dev-code)

bikram-cloud commented 4 years ago

test-dev-codeの設定(Copy files to nginx)

!/bin/bash

ssh -tt bikram@163.44.165.191 '

ls -al

and the rest of your commands

cd /etc/nginx_server sudo git pull && sudo cp nginx.conf /etc/nginx/ sudo cp -r /etc/nginx_server/html /var/www/ systemctl status nginx

'

bikram-cloud commented 4 years ago

deploy-stageの設定(Deploy and restart)

!/bin/bash

ssh -tt bikram@163.44.165.191 '

ls -al

and the rest of your commands

systemctl status nginx sudo systemctl restart nginx

'

bikram-cloud commented 4 years ago

deployment pipelineの作成