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-03-13 18:33:50 +03:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: create-develop-docs-site
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- develop
|
|
|
|
- docs
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
2023-02-19 17:40:30 +03:00
|
|
|
|
2023-03-13 18:33:50 +03:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: build docs
|
|
|
|
image: git.struchkov.dev/upagge/mkdocs-material-insiders:latest
|
|
|
|
volumes:
|
|
|
|
- name: mkdocs_cache
|
|
|
|
path: ${DRONE_WORKSPACE}/documentation/ru/.cache
|
|
|
|
environment:
|
|
|
|
GIT_SSH:
|
|
|
|
from_secret: GIT_SSH
|
|
|
|
GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_rsa -p 222"
|
|
|
|
commands:
|
|
|
|
- eval $(ssh-agent -s)
|
|
|
|
- mkdir -p ~/.ssh
|
|
|
|
- chmod 700 ~/.ssh
|
|
|
|
- echo "$GIT_SSH" >> ~/.ssh/id_rsa
|
|
|
|
- chmod 600 ~/.ssh/id_rsa
|
|
|
|
- ssh-keyscan -p 222 git.struchkov.dev >> ~/.ssh/known_hosts
|
|
|
|
- chmod 644 ~/.ssh/known_hosts
|
|
|
|
- git config --global user.name "${DRONE_COMMIT_AUTHOR_NAME}"
|
|
|
|
- git config --global user.email "${DRONE_COMMIT_AUTHOR_EMAIL}"
|
2023-03-13 18:49:49 +03:00
|
|
|
- git clone ${DRONE_GIT_SSH_URL} .
|
2023-03-13 18:33:50 +03:00
|
|
|
- git checkout $DRONE_COMMIT
|
|
|
|
- cd documentation/ru
|
2023-03-13 22:45:23 +03:00
|
|
|
- mike deploy --prefix godfather-telegram/spring/ru --branch docs-deploy --push --update-aliases develop
|
2023-03-13 18:33:50 +03:00
|
|
|
|
|
|
|
image_pull_secrets:
|
|
|
|
- DOCKER_AUTH
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: mkdocs_cache
|
|
|
|
host:
|
2023-03-13 19:18:55 +03:00
|
|
|
path: /drone/volume/mkdocs_cache/godfather_telegram/ru
|
2023-02-19 16:10:01 +03:00
|
|
|
---
|
2023-01-15 16:37:24 +03:00
|
|
|
kind: signature
|
2023-03-13 22:45:23 +03:00
|
|
|
hmac: 0a56908deb231df7e12f012c94abeea4545f8ad6b19d66f2321036af88afebc7
|
2022-12-18 17:33:47 +03:00
|
|
|
|
2023-01-15 16:37:24 +03:00
|
|
|
...
|