Commit 356cc825 authored by Administrator's avatar Administrator

更新build.yml

parent 254b2653
......@@ -17,7 +17,7 @@ stages:
- cp /home/ubuntu/Dockerfile ./
- docker build -t ${image} --no-cache .
- docker push ${image}
- docker image prune
- docker image prune -f
- python3 /home/ubuntu/k8s-template/deployment.py --appArgs=${springprofile} --appname=${k8sappname} --port=${port} --hostNetwork=${hostNetwork} --nodeName=${nodeName} --image=${image} --replicas=${replicas} > deployment.yaml
- kubectl apply -f deployment.yaml
......
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