2022-12-17 12:11:39 +03:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: haiti-framework
|
|
|
|
|
|
|
|
steps:
|
2022-12-17 12:42:32 +03:00
|
|
|
|
|
|
|
- name: publish
|
2022-12-17 13:58:03 +03:00
|
|
|
image: maven:3.8.6-openjdk-11
|
2022-12-17 13:56:15 +03:00
|
|
|
volumes:
|
|
|
|
- name: m2
|
2022-12-17 15:51:30 +03:00
|
|
|
path: /tmp/test
|
2022-12-17 13:56:15 +03:00
|
|
|
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 13:53:21 +03:00
|
|
|
- echo "$GPG_PRIVATE_KEY" >> gpg.key
|
2022-12-17 13:54:02 +03:00
|
|
|
- echo "$MAVEN_SETTINGS" >> maven-settings.xml
|
2022-12-17 13:52:26 +03:00
|
|
|
- gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key
|
2022-12-17 13:54:02 +03:00
|
|
|
- mvn --settings maven-settings.xml -U -P ossrh,release clean deploy
|
2022-12-17 12:42:32 +03:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
# ref:
|
2022-12-17 13:56:15 +03:00
|
|
|
# - refs/tags/v.*.*.*
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: m2
|
|
|
|
host:
|
|
|
|
path: ${PATH_MAVEN_M2}
|