Commit 474629c6 authored by Administrator's avatar Administrator

Update build.yml

parent f95a8aa8
......@@ -11,7 +11,7 @@ build:
stage: build
script:
- cp /home/ubuntu/Dockerfile ./
- mvn -Dmaven.test.skip=true clean package
- mvn -Dmaven.test.skip=true clean package -U
- echo "appname is ${appname}, port is ${port}, replicas is ${replicas}"
- if [ -d ${appname}-server ]; then cp ${appname}-server/target/*SNAPSHOT.jar app.jar; else cp target/*SNAPSHOT.jar app.jar; fi
- docker build -t 192.168.123.7:5000/${appname}:latest --no-cache .
......
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