Rewrite build config to kokuwa.io infrastructure
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/manual/lint Pipeline failed
ci/woodpecker/manual/verify/2 Pipeline failed
ci/woodpecker/manual/verify/1 Pipeline was successful
ci/woodpecker/manual/build Pipeline failed
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/manual/lint Pipeline failed
ci/woodpecker/manual/verify/2 Pipeline failed
ci/woodpecker/manual/verify/1 Pipeline was successful
ci/woodpecker/manual/build Pipeline failed
This commit is contained in:
parent
61e7955732
commit
1f5620514e
17 changed files with 309 additions and 400 deletions
39
.woodpecker/build.yaml
Normal file
39
.woodpecker/build.yaml
Normal file
|
@ -0,0 +1,39 @@
|
|||
when:
|
||||
instance: ci.kokuwa.io
|
||||
repo: keycloak/keycloak-event-metrics
|
||||
event: [manual, push]
|
||||
branch: main
|
||||
path: [.woodpecker/build.yaml, pom.xml, src/main/**]
|
||||
|
||||
services:
|
||||
- name: dockerd
|
||||
image: kokuwaio/dockerd
|
||||
privileged: true
|
||||
ports: [2375, 8080]
|
||||
|
||||
steps:
|
||||
|
||||
deploy:
|
||||
image: maven:3.9.9-eclipse-temurin-17
|
||||
commands: mvn deploy
|
||||
environment:
|
||||
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress --settings=.woodpecker/maven/settings.xml
|
||||
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
|
||||
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
|
||||
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
|
||||
|
||||
release:
|
||||
image: maven:3.9.9-eclipse-temurin-17
|
||||
commands:
|
||||
- git config user.email "$GIT_USER_EMAIL"
|
||||
- git config user.name "$GIT_USER_NAME"
|
||||
- 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