Struchkov Mark
d05855c2be
All checks were successful
continuous-integration/drone/push Build is passing
104 lines
2.1 KiB
YAML
104 lines
2.1 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
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-maven-central
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/tags/v.*.*.*
|
|
|
|
volumes:
|
|
- name: m2
|
|
host:
|
|
path: /drone/volume/m2
|
|
|
|
steps:
|
|
|
|
- name: publish maven central
|
|
image: maven:3.8.5-openjdk-17
|
|
privileged: true
|
|
volumes:
|
|
- name: m2
|
|
path: /root/.m2/repository
|
|
environment:
|
|
GPG_PRIVATE_KEY:
|
|
from_secret: GPG_PRIVATE_KEY
|
|
MAVEN_SETTINGS:
|
|
from_secret: MAVEN_SETTINGS
|
|
GPG_PASSPHRASE:
|
|
from_secret: GPG_PASSPHRASE
|
|
commands:
|
|
- echo "$GPG_PRIVATE_KEY" >> gpg.key
|
|
- echo "$MAVEN_SETTINGS" >> maven-settings.xml
|
|
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key
|
|
- mvn --settings maven-settings.xml -U -P ossrh,release clean deploy
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: release-struchkov-nexus
|
|
|
|
trigger:
|
|
ref:
|
|
- refs/tags/v.*.*.*
|
|
|
|
volumes:
|
|
- name: m2
|
|
host:
|
|
path: /drone/volume/m2
|
|
|
|
steps:
|
|
|
|
- name: publish struchkov nexus
|
|
image: maven:3.8.5-openjdk-17
|
|
privileged: true
|
|
volumes:
|
|
- name: m2
|
|
path: /root/.m2/repository
|
|
environment:
|
|
GPG_PRIVATE_KEY:
|
|
from_secret: GPG_PRIVATE_KEY
|
|
MAVEN_SETTINGS:
|
|
from_secret: MAVEN_SETTINGS
|
|
GPG_PASSPHRASE:
|
|
from_secret: GPG_PASSPHRASE
|
|
commands:
|
|
- echo "$GPG_PRIVATE_KEY" >> gpg.key
|
|
- echo "$MAVEN_SETTINGS" >> maven-settings.xml
|
|
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key
|
|
- mvn --settings maven-settings.xml -U -P ossrh,release-struchkov-nexus clean deploy
|
|
---
|
|
kind: signature
|
|
hmac: 43c584bfa9959fef91227a75238af6f91762f0e91472c8eaafaa8b1139c18b0e
|
|
|
|
...
|