2025-08-10 22:04:31 +02:00
|
|
|
when:
|
|
|
|
|
- event: push
|
2025-08-11 10:23:00 +02:00
|
|
|
evaluate: 'CI_SYSTEM_HOST == "woodpecker.mnl.de"'
|
2025-08-10 22:04:31 +02:00
|
|
|
|
|
|
|
|
clone:
|
|
|
|
|
- name: git
|
|
|
|
|
image: woodpeckerci/plugin-git
|
|
|
|
|
settings:
|
|
|
|
|
partial: false
|
|
|
|
|
tags: true
|
|
|
|
|
depth: 0
|
|
|
|
|
|
|
|
|
|
steps:
|
2025-08-11 10:37:01 +02:00
|
|
|
- name: prepare
|
|
|
|
|
image: alpine
|
|
|
|
|
commands:
|
|
|
|
|
# Because we run the next step as user 1000 to make podman work:
|
|
|
|
|
- chown -R 1000:1000 .
|
2025-08-11 11:04:53 +02:00
|
|
|
- chown -R 1000:1000 $HOME
|
2025-08-11 10:37:01 +02:00
|
|
|
|
2025-08-11 10:19:17 +02:00
|
|
|
- name: build-jars
|
2025-08-10 22:31:28 +02:00
|
|
|
image: registry.mnl.de/mnl/jdk21-builder:v3
|
2025-08-10 22:04:31 +02:00
|
|
|
environment:
|
2025-08-11 11:06:29 +02:00
|
|
|
HOME: /root
|
2025-08-10 22:04:31 +02:00
|
|
|
REGISTRY: registry.mnl.de
|
|
|
|
|
REGISTRY_USER: mnl
|
|
|
|
|
REGISTRY_TOKEN:
|
|
|
|
|
from_secret: REGISTRY_TOKEN
|
|
|
|
|
commands:
|
2025-08-11 10:19:17 +02:00
|
|
|
- ./gradlew -Pdocker.registry=$REGISTRY/$REGISTRY_USER build apidocs publishImage
|
2025-08-11 10:29:33 +02:00
|
|
|
backend_options:
|
|
|
|
|
kubernetes:
|
|
|
|
|
securityContext:
|
|
|
|
|
privileged: true
|
|
|
|
|
runAsUser: 1000
|
|
|
|
|
runAsGroup: 1000
|