This commit is contained in:
parent
82b8d74e33
commit
98e0825c69
32
.drone.yml
32
.drone.yml
@ -4,38 +4,14 @@ name: haiti-framework
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: restore-cache
|
|
||||||
image: drillster/drone-volume-cache
|
|
||||||
volumes:
|
|
||||||
- name: m2
|
|
||||||
path: /cache
|
|
||||||
settings:
|
|
||||||
restore: true
|
|
||||||
mount:
|
|
||||||
- /root/.m2
|
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: maven:3.8.6-eclipse-temurin-17
|
image: maven:3.8.6-eclipse-temurin-17
|
||||||
commands:
|
commands:
|
||||||
- mvn -U clean package
|
- echo "$GPG_PRIVATE_KEY" >> "gpg.txt"
|
||||||
|
- echo "$MAVEN_SETTINGS" >> "maven-settings.xml"
|
||||||
- name: rebuild-cache
|
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.txt
|
||||||
image: drillster/drone-volume-cache
|
- mvn --settings maven-settings.xml -U -P ossrh,release clean deploy
|
||||||
volumes:
|
|
||||||
- name: m2
|
|
||||||
path: /cache
|
|
||||||
settings:
|
|
||||||
rebuild: true
|
|
||||||
mount:
|
|
||||||
- /root/.m2
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: m2
|
|
||||||
host:
|
|
||||||
path: ${PATH_MAVEN_M2}
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
# ref:
|
# ref:
|
||||||
# - refs/tags/v.*.*.*
|
# - refs/tags/v.*.*.*
|
Loading…
Reference in New Issue
Block a user