2022-12-17 12:11:39 +03:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: haiti-framework
|
|
|
|
|
|
|
|
steps:
|
2022-12-17 15:54:41 +03:00
|
|
|
|
|
|
|
- name: publish
|
|
|
|
image: maven:3.8.6-openjdk-11
|
2022-12-17 13:56:15 +03:00
|
|
|
volumes:
|
2022-12-17 15:54:41 +03:00
|
|
|
- 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
|
2022-12-17 12:20:07 +03:00
|
|
|
commands:
|
2022-12-17 15:54:41 +03:00
|
|
|
- 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
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
# ref:
|
|
|
|
# - refs/tags/v.*.*.*
|
2022-12-17 13:56:15 +03:00
|
|
|
|
|
|
|
volumes:
|
2022-12-17 15:54:41 +03:00
|
|
|
- name: m2
|
2022-12-17 16:01:41 +03:00
|
|
|
environment:
|
|
|
|
PATH_MAVEN_M2:
|
|
|
|
from_secret: PATH_MAVEN_M2
|
2022-12-17 13:56:15 +03:00
|
|
|
host:
|
2022-12-17 16:01:41 +03:00
|
|
|
path: $PATH_MAVEN_M2
|