test
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Wxz 2025-07-17 19:35:00 +08:00
parent 92e9e64fc8
commit c8a3e6bbe9
1 changed files with 12 additions and 4 deletions

View File

@ -1,10 +1,18 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: default name: java-demo
steps: steps:
- name: build - name: build
image: node:18 image: maven:3.9.6-eclipse-temurin-17-alpine # 仅 ~220 MB
commands: commands:
- echo "Hello Drone + Gitea!" - mvn -B clean package -DskipTests # 跳过测试,更快
- node --version - 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 # 宿主缓存目录