create jenkins cd project - jamongx/twitter-clone GitHub Wiki
-
Dashboard -> New Item -> Name:
Twitter_Clone_User_Service_CD_Job
-> Freestyle project -
Description ->
Deploy on Kubernetes
-
Source Code Management -> None
-
Post-build Actions -> Send build artifacts over SSH
-
SSH Publisher -> SSH Sever Name ->
ansible-server
-
Exec command:
ansible-playbook -i /opt/docker/hosts /opt/docker/kube_deploy.yml;