VM-Operator/.woodpecker/build.yaml

37 lines
770 B
YAML
Raw Normal View History

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:
2025-08-11 11:00:38 +02:00
- pwd
2025-08-11 10:37:01 +02:00
# Because we run the next step as user 1000 to make podman work:
- chown -R 1000:1000 .
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:
REGISTRY: registry.mnl.de
REGISTRY_USER: mnl
REGISTRY_TOKEN:
from_secret: REGISTRY_TOKEN
commands:
2025-08-11 11:00:38 +02:00
- pwd
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