drone 测试3
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
88a74f8144
commit
1c11fb14a5
32
.drone.yml
32
.drone.yml
|
@ -4,7 +4,7 @@ name: testxxx
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# 1.maven打包gateway网关模块
|
# 1.maven打包gateway网关模块
|
||||||
- name: maven compile gateway
|
- name: maven compile
|
||||||
pull: if-not-exists
|
pull: if-not-exists
|
||||||
# 构建镜像的maven+jdk选择,最好选择满足匹配你的项目版本的;这里的maven是maven3
|
# 构建镜像的maven+jdk选择,最好选择满足匹配你的项目版本的;这里的maven是maven3
|
||||||
image: adoptopenjdk/maven-openjdk8
|
image: adoptopenjdk/maven-openjdk8
|
||||||
|
@ -12,9 +12,10 @@ steps:
|
||||||
# maven构建缓存,也就是下面的/home/zeroerr/drone/maven/cache
|
# maven构建缓存,也就是下面的/home/zeroerr/drone/maven/cache
|
||||||
- name: maven-cache
|
- name: maven-cache
|
||||||
path: /root/.m2
|
path: /root/.m2
|
||||||
# 挂载宿主机的目录;也就是下面的/home/zeroerr/drone/maven/build
|
|
||||||
- name: maven-build-gateway
|
- name: maven-build-gateway
|
||||||
path: /drone/build/gateway
|
path: /drone/build/gateway
|
||||||
|
- name: maven-build-auth
|
||||||
|
path: /drone/build/auth
|
||||||
commands:
|
commands:
|
||||||
# 开始打包maven工程
|
# 开始打包maven工程
|
||||||
- mvn clean package -Dmaven.test.skip=true
|
- mvn clean package -Dmaven.test.skip=true
|
||||||
|
@ -24,6 +25,11 @@ steps:
|
||||||
- cp DockerSH/docker-gateway.sh /drone/build/gateway
|
- cp DockerSH/docker-gateway.sh /drone/build/gateway
|
||||||
- cp StartSH/start-gateway.sh /drone/build/gateway
|
- cp StartSH/start-gateway.sh /drone/build/gateway
|
||||||
|
|
||||||
|
- cp zeroerroa-auth/target/*.jar /drone/build/auth
|
||||||
|
- cp Dockerfile/Dockerfile-auth /drone/build/auth
|
||||||
|
- cp DockerSH/docker-auth.sh /drone/build/auth
|
||||||
|
- cp StartSH/start-auth.sh /drone/build/auth
|
||||||
|
|
||||||
- name: build docker gateway
|
- name: build docker gateway
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -42,28 +48,6 @@ steps:
|
||||||
- docker ps
|
- docker ps
|
||||||
|
|
||||||
|
|
||||||
# 2.maven打包auth权限验证
|
|
||||||
- name: maven compile auth
|
|
||||||
pull: if-not-exists
|
|
||||||
# 构建镜像的maven+jdk选择,最好选择满足匹配你的项目版本的;这里的maven是maven3
|
|
||||||
image: adoptopenjdk/maven-openjdk8
|
|
||||||
volumes:
|
|
||||||
# maven构建缓存,也就是下面的/home/zeroerr/drone/maven/cache
|
|
||||||
- name: maven-cache
|
|
||||||
path: /root/.m2
|
|
||||||
# 挂载宿主机的目录;也就是下面的/home/zeroerr/drone/maven/build/auth
|
|
||||||
- name: maven-build-auth
|
|
||||||
path: /drone/build/auth
|
|
||||||
commands:
|
|
||||||
# 开始打包maven工程
|
|
||||||
- mvn clean package -Dmaven.test.skip=true
|
|
||||||
# 将打包后的文件复制到宿主机映射目录,由于该项目打包后jar包在zeroerr_oa-admin模块下,所以这里一定要注意,每个项目都不一样。
|
|
||||||
- cp zeroerroa-auth/target/*.jar /drone/build/auth
|
|
||||||
- cp Dockerfile/Dockerfile-auth /drone/build/auth
|
|
||||||
- cp DockerSH/docker-auth.sh /drone/build/auth
|
|
||||||
- cp StartSH/start-auth.sh /drone/build/auth
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: build docker auth
|
- name: build docker auth
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
<module>zeroerroa-gen</module>
|
<module>zeroerroa-gen</module>
|
||||||
<module>zeroerroa-job</module>
|
<module>zeroerroa-job</module>
|
||||||
<module>zeroerroa-file</module>
|
<module>zeroerroa-file</module>
|
||||||
<module>zeroerroa-recruit</module>
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<artifactId>zeroerroa-modules</artifactId>
|
<artifactId>zeroerroa-modules</artifactId>
|
||||||
|
|
Loading…
Reference in New Issue