Browse Source

feat: 不在缓存打包结果

master
niushuai233 2 years ago
parent
commit
ce7e0359ba
  1. 9
      .drone.yml

9
.drone.yml

@ -19,9 +19,7 @@ volumes: @@ -19,9 +19,7 @@ volumes:
- name: maven-cache
host:
path: /data/drone/m2/cache
- name: maven-build
host:
path: /data/drone/m2/build
- name: docker-sock
host:
path: /var/run/docker.sock
@ -37,15 +35,10 @@ steps: @@ -37,15 +35,10 @@ steps:
volumes:
- name: maven-cache
path: /root/.m2
- name: maven-build
path: /app/build
commands:
- echo 'maven package start'
# 打包
- mvn clean package -Dmaven.test.skip=true
# 拷贝打包结果到宿主机
- mkdir -p /app/build/db-bastion-server
- cp target/db-bastion-server.jar /app/build/db-bastion-server/db-bastion-server.jar
# 构建镜像
- name: build-image

Loading…
Cancel
Save