This commit is contained in:
parent
02fd8a016d
commit
f21964eee2
50
.drone.yml
50
.drone.yml
@ -1,7 +1,45 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: haiti-framework
|
name: snapshot-publish
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- develop
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: m2
|
||||||
|
host:
|
||||||
|
path: /drone/volume/m2
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: publish
|
||||||
|
image: maven:3.8.5-openjdk-17
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- name: m2
|
||||||
|
path: /root/.m2/repository
|
||||||
|
environment:
|
||||||
|
MAVEN_SETTINGS:
|
||||||
|
from_secret: MAVEN_SETTINGS
|
||||||
|
commands:
|
||||||
|
- echo "$MAVEN_SETTINGS" >> maven-settings.xml
|
||||||
|
- mvn --settings maven-settings.xml -U -P snapshot clean deploy
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: release-publish
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
ref:
|
||||||
|
- refs/tags/v.*.*.*
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: m2
|
||||||
|
host:
|
||||||
|
path: /drone/volume/m2
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@ -24,16 +62,8 @@ steps:
|
|||||||
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key
|
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key
|
||||||
- mvn --settings maven-settings.xml -U -P ossrh,release clean deploy
|
- mvn --settings maven-settings.xml -U -P ossrh,release clean deploy
|
||||||
|
|
||||||
trigger:
|
|
||||||
ref:
|
|
||||||
- refs/tags/v.*.*.*
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: m2
|
|
||||||
host:
|
|
||||||
path: /drone/volume/m2
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 4739b3854a68e1ec849cdff113b27d0ed17a9da62ecdffd2fbc55dbd852efcdd
|
hmac: d30cbf3dfe171a8912b3171a0b7e5345f0cd80b65c1386d3207bffc06b56c3db
|
||||||
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user