diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index b506d4d..aad6439 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -11,6 +11,12 @@ clone: 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 . + - name: build-jars image: registry.mnl.de/mnl/jdk21-builder:v3 environment: @@ -19,8 +25,6 @@ steps: 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: