VM-Operator/.woodpecker/build.yaml
Michael N. Lipp a256156a9a
Some checks failed
Java CI with Gradle / build (push) Waiting to run
ci/woodpecker/push/build Pipeline failed
Try.
2025-08-11 11:04:53 +02:00

35 lines
781 B
YAML

when:
- event: push
evaluate: 'CI_SYSTEM_HOST == "woodpecker.mnl.de"'
clone:
- name: git
image: woodpeckerci/plugin-git
settings:
partial: false
tags: true
depth: 0
steps:
- name: prepare
image: alpine
commands:
# Because we run the next step as user 1000 to make podman work:
- chown -R 1000:1000 .
- chown -R 1000:1000 $HOME
- name: build-jars
image: registry.mnl.de/mnl/jdk21-builder:v3
environment:
REGISTRY: registry.mnl.de
REGISTRY_USER: mnl
REGISTRY_TOKEN:
from_secret: REGISTRY_TOKEN
commands:
- ./gradlew -Pdocker.registry=$REGISTRY/$REGISTRY_USER build apidocs publishImage
backend_options:
kubernetes:
securityContext:
privileged: true
runAsUser: 1000
runAsGroup: 1000