Developer > Git-Hub > Jenkins > Ansible > Kubernetes
rsync -avh /var/lib/jenkins/workspace/kubernetes-project/* [email protected]:/opt
cd /opt docker image build -t $JOB_NAME:v1.$BUILD_ID . docker image tag $JOB_NAME:v1.$BUILD_ID fazzlerabby/$JOB_NAME:v1.$BUILD_ID docker image tag $JOB_NAME:v1.$BUILD_ID fazzlerabby/$JOB_NAME:latest docker image push fazzlerabby/$JOB_NAME:v1.$BUILD_ID docker image push fazzlerabby/$JOB_NAME:latest docker image rmi $JOB_NAME:v1.$BUILD_ID fazzlerabby/$JOB_NAME:v1.$BUILD_ID fazzlerabby/$JOB_NAME:latest
ansible-playbook /opt/ansible.yml