Commit 81d4dceb authored by Administrator's avatar Administrator

更新build.yml

parent 6ce30297
......@@ -10,4 +10,5 @@ build:
- mvn -Dmaven.test.skip=true clean package
- echo "appname is ${appname}, ports is ${ports}"
- docker build -t 192.168.123.7:5000/${appname} --no-cache --build-arg=$ports .
- python3 /home/ubuntu/k8s-template/deployment.py > deployment.yaml
- docker push 192.168.123.7:5000/${appname}
- python3 /home/ubuntu/k8s-template/deployment.py --appname=${appname} --ports=${ports} --image=192.168.123.7:5000/${appname} > 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