feat: add maven cache using PVC
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
15
.drone.yml
15
.drone.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user