代码拉取完成,页面将自动刷新
stages:
- build
- run
server-package:
stage: build
script:
- source /etc/profile
- /usr/local/apache-maven-3.6.3/bin/mvn clean install -f pd-tools/pom.xml -Dmaven.test.skip=true
- /usr/local/apache-maven-3.6.3/bin/mvn clean package -f pd-apps/pom.xml -P test -Dmaven.test.skip=true
- docker build -t pinda-authority/gateway --build-arg PACKAGE_PATH=pd-apps/pd-gateway/target/*.jar --build-arg EXPOSE_PORT=8760 .
- docker build -t pinda-authority/auth-server --build-arg PACKAGE_PATH=pd-apps/pd-auth/pd-auth-server/target/*.jar --build-arg EXPOSE_PORT=8764 .
- docker build -t pinda-authority/file-server --build-arg PACKAGE_PATH=pd-apps/pd-file/pd-file-server/target/*.jar --build-arg EXPOSE_PORT=8765 .
- docker build -t pinda-authority/goods-server --build-arg PACKAGE_PATH=pd-apps/pd-goods/pd-goods-server/target/*.jar --build-arg EXPOSE_PORT=8767 .
only:
- master
tags:
- auth-runner
server-runner:
stage: run
script:
- pwd
- docker rm -f $(docker ps -a | grep "pinda-authority*" | awk '{print $1}')
- docker run -d -p 8760:8760 --name pinda-authority-gateway pinda-authority/gateway
- docker run -d -p 8764:8764 --name pinda-authority-auth-server pinda-authority/auth-server
- docker run -d -p 8765:8765 -v /data/projects/uploadfile/file:/data/projects/uploadfile/file --name pinda-authority-file-server pinda-authority/file-server
- docker run -d -p 8767:8767 --name pinda-authority-goods-server pinda-authority/goods-server
only:
- master
tags:
- auth-runner
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。