haiti-filter-reactive-quarkus/.drone.yml

110 lines
2.4 KiB
YAML
Raw Normal View History

2023-05-11 12:59:08 +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-03 09:57:50 +03:00
image: hub.docker.struchkov.dev/maven:3.9.5-eclipse-temurin-17-alpine
2023-05-11 12:59:08 +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-03 09:57:50 +03:00
image_pull_secrets:
- DOCKER_AUTH
2023-05-11 12:59:08 +03:00
---
kind: pipeline
type: docker
name: release-maven-central
trigger:
ref:
- refs/tags/v.*.*.*
volumes:
- name: m2
host:
path: /drone/volume/m2
steps:
- name: publish maven central
2024-01-09 14:51:33 +03:00
image: hub.docker.struchkov.dev/maven:3.9.6-eclipse-temurin-17
2023-05-11 12:59:08 +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-12-03 09:57:50 +03:00
image_pull_secrets:
- DOCKER_AUTH
2023-05-11 12:59:08 +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
2024-01-09 14:51:33 +03:00
image: hub.docker.struchkov.dev/maven:3.9.5-eclipse-temurin-17
2023-05-11 12:59:08 +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-03 09:57:50 +03:00
image_pull_secrets:
- DOCKER_AUTH
2023-05-11 12:59:08 +03:00
---
kind: signature
2024-01-09 14:51:33 +03:00
hmac: 5ce3e381ed9fa12673ccb654e1c108f8c73d0ffeda0d133807fe36c0449ab770
2023-05-11 12:59:08 +03:00
...