Настройка сборки drone
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
08625f4912
commit
2e0da4f29f
38
.drone.yml
38
.drone.yml
@ -3,21 +3,39 @@ type: docker
|
|||||||
name: haiti-framework
|
name: haiti-framework
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: package
|
|
||||||
image: maven:3.8.6-eclipse-temurin-17
|
- name: restore-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
volumes:
|
volumes:
|
||||||
- name: m2
|
- name: m2
|
||||||
path: /root/.m2
|
path: /m2
|
||||||
|
settings:
|
||||||
|
restore: true
|
||||||
|
mount:
|
||||||
|
- /root/.m2
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
image: maven:3.8.6-eclipse-temurin-17
|
||||||
commands:
|
commands:
|
||||||
- mvn -Dmaven.repo.local=/drone/.m2/repository -U clean package
|
- mvn -U clean package
|
||||||
|
|
||||||
|
- name: rebuild-cache
|
||||||
|
image: drillster/drone-volume-cache
|
||||||
|
volumes:
|
||||||
|
- name: m2
|
||||||
|
path: /m2
|
||||||
|
settings:
|
||||||
|
rebuild: true
|
||||||
|
mount:
|
||||||
|
- /root/.m2
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: m2
|
||||||
|
host:
|
||||||
|
path: ${PATH_MAVEN_M2}
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
# ref:
|
# ref:
|
||||||
# - refs/tags/v.*.*.*
|
# - refs/tags/v.*.*.*
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: m2
|
|
||||||
host:
|
|
||||||
path: ${PATH_MAVEN_M2}
|
|
Loading…
Reference in New Issue
Block a user