1 Star 0 Fork 74

yuedaotian / 权限管家 - 后端服务

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
王松岩 提交于 2021-09-01 15:37 . Initial commit
stages:
- build
- run
server-package:
stage: build
script:
- source /etc/profile
- mvn clean install -Ptest -DskipTests -U
- docker build -t itcast-authority/gateway --build-arg PACKAGE_PATH=itcast-gateway/target/*.jar --build-arg EXPOSE_PORT=8761 .
- docker build -t itcast-authority/auth-server --build-arg PACKAGE_PATH=itcast-auth/itcast-auth-server/target/*.jar --build-arg EXPOSE_PORT=8766 .
only:
- platform
tags:
- auth-runner
server-runner:
stage: run
script:
- pwd
# 首次执行需要注释掉否则会报错
- docker rm -f $(docker ps -a | grep "itcast-authority*" | awk '{print $1}')
- docker run -d -p 8761:8760 --name itcast-authority-gateway itcast-authority/gateway
- docker run -d -p 8766:8764 --name itcast-authority-auth-server itcast-authority/auth-server
# 首次执行需要注释掉否则会报错
- docker images | grep none | awk '{print $3}' | xargs docker rmi
only:
- platform
tags:
- auth-runner
Java
1
https://gitee.com/yuedaotian/itcast-authority.git
git@gitee.com:yuedaotian/itcast-authority.git
yuedaotian
itcast-authority
权限管家 - 后端服务
open

搜索帮助