Commit edfd5ee6 authored by Administrator's avatar Administrator

Update build.yml

parent e5710d83
......@@ -11,8 +11,8 @@ build:
script:
- cp /home/ubuntu/Dockerfile ./
- mvn -Dmaven.test.skip=true clean package
- echo "appname is ${appname}, ports is ${ports}, replicas is ${replicas}"
- docker build -t 192.168.123.7:5000/${appname}:latest --no-cache --build-arg=$ports .
- echo "appname is ${appname}, port is ${port}, replicas is ${replicas}"
- docker build -t 192.168.123.7:5000/${appname}:latest --no-cache .
- docker push 192.168.123.7:5000/${appname}:latest
- python3 /home/ubuntu/k8s-template/deployment.py --appname=${appname} --ports=${ports} --image=192.168.123.7:5000/${appname}:latest --replicas=${replicas} > deployment.yaml
- python3 /home/ubuntu/k8s-template/deployment.py --appname=${appname} --port=${port} --image=192.168.123.7:5000/${appname}:latest --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