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
|
2023-12-02 22:10:35 +03:00
|
|
|
image: hub.docker.struchkov.dev/maven:3.9.5-eclipse-temurin-17-alpine
|
2023-02-19 18:31:39 +03:00
|
|
|
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-12-02 22:12:24 +03:00
|
|
|
image_pull_secrets:
|
|
|
|
- DOCKER_AUTH
|
2023-02-19 18:31:39 +03:00
|
|
|
---
|
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
|
2023-12-02 22:10:35 +03:00
|
|
|
image: hub.docker.struchkov.dev/maven:3.9.5-eclipse-temurin-17-alpine
|
2022-12-18 17:33:47 +03:00
|
|
|
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
|
|
|
|
2023-12-02 22:12:24 +03:00
|
|
|
image_pull_secrets:
|
|
|
|
- DOCKER_AUTH
|
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
|
2023-12-02 22:10:35 +03:00
|
|
|
image: hub.docker.struchkov.dev/maven:3.9.5-eclipse-temurin-17-alpine
|
2023-01-17 02:53:11 +03:00
|
|
|
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-12-02 22:12:24 +03:00
|
|
|
image_pull_secrets:
|
|
|
|
- DOCKER_AUTH
|
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
|
2023-12-02 22:10:35 +03:00
|
|
|
image: private.docker.struchkov.dev/mkdocs:latest
|
2023-03-13 18:33:50 +03:00
|
|
|
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
|
2023-03-13 22:56:49 +03:00
|
|
|
- cd documentation/spring/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 22:55:49 +03:00
|
|
|
path: /drone/volume/mkdocs_cache/godfather_telegram/spring/ru
|
2023-02-19 16:10:01 +03:00
|
|
|
---
|
2023-01-15 16:37:24 +03:00
|
|
|
kind: signature
|
2023-12-02 22:12:24 +03:00
|
|
|
hmac: a34ade73094a4c0e8416102e384c4e36b5612f81331447d69589f632a3e1cde4
|
2022-12-18 17:33:47 +03:00
|
|
|
|
2023-01-15 16:37:24 +03:00
|
|
|
...
|