feat: add maven cache using PVC
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Agent
2026-03-22 04:45:11 +00:00
parent d1e39c2179
commit ac2c95ae69

View File

@@ -3,6 +3,10 @@ type: kubernetes
name: build-and-deploy-dev
volumes:
- name: maven-cache
persistentVolumeClaim:
claimName: maven-cache-pvc
trigger:
event:
@@ -15,6 +19,9 @@ steps:
image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22
commands:
- mvn clean package -DskipTests
volumes:
- name: maven-cache
mountPath: /root/.m2
- name: dev-build-image
image: ccr.ccs.tencentyun.com/violin/kaniko-project-executor:latest
@@ -43,6 +50,11 @@ type: kubernetes
name: build-and-deploy-prod
volumes:
- name: maven-cache
persistentVolumeClaim:
claimName: maven-cache-pvc
trigger:
event:
- push
@@ -54,6 +66,9 @@ steps:
image: ccr.ccs.tencentyun.com/violin/maven:3.9-eclipse-temurin-22
commands:
- mvn clean package -DskipTests
volumes:
- name: maven-cache
mountPath: /root/.m2
- name: prod-build-image
image: ccr.ccs.tencentyun.com/violin/kaniko-project-executor:latest