加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.gitlab-ci.yml 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
fjifjogjkmdkdld 提交于 2021-12-01 20:47 . Initial commit
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化