123
This commit is contained in:
parent
a10691adb2
commit
a72bfebb1b
3 changed files with 43 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
when:
|
when:
|
||||||
instance: ci.kokuwa.io
|
instance: ci.kokuwa.io
|
||||||
repo: kokuwaio/markdownlint
|
repo: keycloak/keycloak-event-metrics
|
||||||
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/**]
|
||||||
|
@ -16,6 +16,21 @@ steps:
|
||||||
image: maven:3.9.9-eclipse-temurin-17
|
image: maven:3.9.9-eclipse-temurin-17
|
||||||
commands: mvn deploy --settings=.woodpecker/maven/settings.xml
|
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}
|
||||||
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}
|
||||||
DOCKER_IO_USERNAME: {from_secret: docker_io_username}
|
DOCKER_IO_USERNAME: {from_secret: docker_io_username}
|
||||||
|
|
25
.woodpecker/release.yaml
Normal file
25
.woodpecker/release.yaml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
when:
|
||||||
|
instance: ci.kokuwa.io
|
||||||
|
repo: keycloak/keycloak-event-metrics
|
||||||
|
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}
|
4
pom.xml
4
pom.xml
|
@ -34,8 +34,8 @@
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<url>https://git.kokuwa.io/keycloak/keycloak-event-metrics</url>
|
<url>https://git.kokuwa.io/keycloak/keycloak-event-metrics</url>
|
||||||
<connection>https://git.kokuwa.io/keycloak/keycloak-event-metrics.git</connection>
|
<connection>scm:git:https://git.kokuwa.io/keycloak/keycloak-event-metrics.git</connection>
|
||||||
<developerConnection>https://git.kokuwa.io/keycloak/keycloak-event-metrics.git</developerConnection>
|
<developerConnection>scm:git:https://git.kokuwa.io/keycloak/keycloak-event-metrics.git</developerConnection>
|
||||||
<tag>HEAD</tag>
|
<tag>HEAD</tag>
|
||||||
</scm>
|
</scm>
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue