2023-02-19 16:38:16 +03:00
|
|
|
---
|
2023-02-19 18:31:39 +03:00
|
|
|
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
|
|
|
|
|
|
|
|
---
|
2023-01-15 16:37:24 +03:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2023-01-17 02:53:11 +03:00
|
|
|
name: release-maven-central
|
2023-01-15 16:37:24 +03:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/tags/v.*.*.*
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: m2
|
|
|
|
host:
|
|
|
|
path: /drone/volume/m2
|
2022-12-18 17:33:47 +03:00
|
|
|
|
|
|
|
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
|
2023-01-17 02:53:11 +03:00
|
|
|
|
|
|
|
---
|
|
|
|
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
|
|
|
|
|
2023-01-15 16:37:24 +03:00
|
|
|
---
|
2023-02-19 16:10:01 +03:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: create-docs-site
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
2023-02-19 18:41:54 +03:00
|
|
|
- docs
|
|
|
|
- master
|
2023-02-19 16:10:01 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build site
|
|
|
|
image: upagge/mkdocs-material
|
2023-02-19 16:39:34 +03:00
|
|
|
environment:
|
2023-02-19 18:14:24 +03:00
|
|
|
SSH_DEPLOY_KEY:
|
2023-02-19 18:14:00 +03:00
|
|
|
from_secret: SSH_DEPLOY_KEY
|
2023-02-19 16:39:34 +03:00
|
|
|
SSH_DEPLOY_HOST:
|
|
|
|
from_secret: SSH_DEPLOY_HOST
|
|
|
|
SSH_DEPLOY_PORT:
|
|
|
|
from_secret: SSH_DEPLOY_PORT
|
|
|
|
SSH_DEPLOY_PATH:
|
|
|
|
from_secret: SSH_DEPLOY_PATH
|
2023-02-19 17:27:48 +03:00
|
|
|
SSH_DEPLOY_USER:
|
|
|
|
from_secret: SSH_DEPLOY_USER
|
2023-02-19 16:10:01 +03:00
|
|
|
commands:
|
2023-02-19 16:38:16 +03:00
|
|
|
- eval $(ssh-agent -s)
|
2023-02-19 17:40:30 +03:00
|
|
|
- mkdir -p ~/.ssh
|
2023-02-19 18:07:38 +03:00
|
|
|
- echo "$SSH_DEPLOY_KEY" >> ~/.ssh/id_rsa
|
2023-02-19 17:40:30 +03:00
|
|
|
- chmod 700 ~/.ssh
|
2023-02-19 17:48:57 +03:00
|
|
|
- chmod 600 ~/.ssh/id_rsa
|
2023-02-19 17:44:21 +03:00
|
|
|
- ssh-keyscan -p $SSH_DEPLOY_PORT $SSH_DEPLOY_HOST >> ~/.ssh/known_hosts
|
2023-02-19 17:40:30 +03:00
|
|
|
- chmod 644 ~/.ssh/known_hosts
|
2023-02-19 19:56:22 +03:00
|
|
|
- cd documentation
|
2023-02-19 18:30:35 +03:00
|
|
|
- mkdocs build
|
2023-02-19 18:41:05 +03:00
|
|
|
- mv site godfather-telegram
|
2023-02-19 18:34:24 +03:00
|
|
|
- scp -r -P $SSH_DEPLOY_PORT ./godfather-telegram $SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:$SSH_DEPLOY_PATH
|
2023-02-19 17:40:30 +03:00
|
|
|
|
2023-02-19 16:10:01 +03:00
|
|
|
---
|
2023-01-15 16:37:24 +03:00
|
|
|
kind: signature
|
2023-02-19 19:56:22 +03:00
|
|
|
hmac: f572c63a70de0e0b94dda125006e3fc0e2b29ccd318034c7e4193c0c2bee70b2
|
2022-12-18 17:33:47 +03:00
|
|
|
|
2023-01-15 16:37:24 +03:00
|
|
|
...
|