Commit 7c8c20bf authored by Administrator's avatar Administrator

Update build.yml

parent d93b4b09
......@@ -12,6 +12,7 @@ build:
script:
- cp /home/ubuntu/Dockerfile ./
- mvn -Dmaven.test.skip=true clean package
- if -d ${appname}-server; then cp ${appname}-server/target/*.jar app.jar else cp target/*.jar app.jar fi
- 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
......
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