Настройка сборки drone
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Struchkov Mark 2022-12-17 12:48:39 +03:00
parent 82b8d74e33
commit 98e0825c69

View File

@ -4,38 +4,14 @@ name: haiti-framework
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: m2
path: /cache
settings:
restore: true
mount:
- /root/.m2
- name: publish
image: maven:3.8.6-eclipse-temurin-17
commands:
- mvn -U clean package
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: m2
path: /cache
settings:
rebuild: true
mount:
- /root/.m2
volumes:
- name: m2
host:
path: ${PATH_MAVEN_M2}
- echo "$GPG_PRIVATE_KEY" >> "gpg.txt"
- echo "$MAVEN_SETTINGS" >> "maven-settings.xml"
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.txt
- mvn --settings maven-settings.xml -U -P ossrh,release clean deploy
trigger:
branch:
- master
# ref:
# - refs/tags/v.*.*.*