This commit is contained in:
parent
725cd13d8c
commit
ca16edff2d
2 changed files with 42 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
when:
|
when:
|
||||||
|
instance: ci.kokuwa.io
|
||||||
|
repo: kokuwaio/markdownlint
|
||||||
event: [manual, push]
|
event: [manual, push]
|
||||||
branch: main
|
branch: main
|
||||||
path: [.woodpecker/build.yaml, pom.xml, src/main/**]
|
path: [.woodpecker/build.yaml, pom.xml, src/main/**]
|
||||||
|
@ -12,8 +14,22 @@ steps:
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: maven:3.9.9-eclipse-temurin-17
|
image: maven:3.9.9-eclipse-temurin-17
|
||||||
commands: mvn deploy --settings=.woodpecker/maven/settings.xml -DskipTests
|
commands: mvn deploy --settings=.woodpecker/maven/settings.xml
|
||||||
environment:
|
environment:
|
||||||
|
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress -DskipTests
|
||||||
|
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
|
||||||
|
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
|
||||||
|
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
|
||||||
|
DOCKER_IO_USERNAME: {from_secret: docker_io_username}
|
||||||
|
DOCKER_IO_PASSWORD: {from_secret: docker_io_password}
|
||||||
|
GHCR_IO_USERNAME: {from_secret: ghcr_io_username}
|
||||||
|
GHCR_IO_PASSWORD: {from_secret: ghcr_io_password}
|
||||||
|
|
||||||
|
release:
|
||||||
|
image: maven:3.9.9-eclipse-temurin-17
|
||||||
|
commands: mvn release:prepare release:perform --settings=.woodpecker/maven/settings.xml
|
||||||
|
environment:
|
||||||
|
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress -DskipTests -DautoPublish=false
|
||||||
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
|
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
|
||||||
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
|
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
|
||||||
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
|
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
|
||||||
|
|
25
.woodpecker/release.yaml
Normal file
25
.woodpecker/release.yaml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
when:
|
||||||
|
instance: ci.kokuwa.io
|
||||||
|
repo: kokuwaio/markdownlint
|
||||||
|
event: deployment
|
||||||
|
branch: main
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: dockerd
|
||||||
|
image: kokuwaio/dockerd
|
||||||
|
ports: [2375, 8080]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
image: maven:3.9.9-eclipse-temurin-17
|
||||||
|
commands: mvn release:prepare release:perform --settings=.woodpecker/maven/settings.xml
|
||||||
|
environment:
|
||||||
|
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress -DskipTests -DautoPublish=false
|
||||||
|
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
|
||||||
|
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
|
||||||
|
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
|
||||||
|
DOCKER_IO_USERNAME: {from_secret: docker_io_username}
|
||||||
|
DOCKER_IO_PASSWORD: {from_secret: docker_io_password}
|
||||||
|
GHCR_IO_USERNAME: {from_secret: ghcr_io_username}
|
||||||
|
GHCR_IO_PASSWORD: {from_secret: ghcr_io_password}
|
Loading…
Add table
Add a link
Reference in a new issue