VM-Operator/.woodpecker/build.yaml
Michael N. Lipp dbf9dd0da5
Some checks failed
Java CI with Gradle / build (push) Waiting to run
ci/woodpecker/push/build Pipeline failed
Allow podman.
2025-08-11 10:29:33 +02:00

30 lines
723 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: 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:
# Because we run this as user 1000 to make podman work:
- git config --global --add safe.directory $(pwd)
- ./gradlew -Pdocker.registry=$REGISTRY/$REGISTRY_USER build apidocs publishImage
backend_options:
kubernetes:
securityContext:
privileged: true
runAsUser: 1000
runAsGroup: 1000