VM-Operator/.woodpecker/build.yaml
Michael N. Lipp 4e9c2cae1d
Some checks failed
Java CI with Gradle / build (push) Waiting to run
ci/woodpecker/push/build Pipeline failed
Test.
2025-08-11 11:06:29 +02:00

36 lines
797 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:
HOME: /root
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