test
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
92e9e64fc8
commit
c8a3e6bbe9
16
.drone.yml
16
.drone.yml
|
|
@ -1,10 +1,18 @@
|
|||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
name: java-demo
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: node:18
|
||||
image: maven:3.9.6-eclipse-temurin-17-alpine # 仅 ~220 MB
|
||||
commands:
|
||||
- echo "Hello Drone + Gitea!"
|
||||
- node --version
|
||||
- mvn -B clean package -DskipTests # 跳过测试,更快
|
||||
- java -jar target/*.jar --version || echo "Build OK"
|
||||
volumes:
|
||||
- name: m2-cache
|
||||
path: /root/.m2 # 本地缓存依赖
|
||||
|
||||
volumes:
|
||||
- name: m2-cache
|
||||
host:
|
||||
path: /tmp/drone-m2-cache # 宿主缓存目录
|
||||
Loading…
Reference in New Issue