[root] Set up woodpecker
ci/woodpecker/manual/woodpecker Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2022-11-01 18:57:18 +01:00
parent f11be52861
commit 0c7a000c2f
Signed by: Johannes
GPG Key ID: E76429612C2929F4
2 changed files with 12 additions and 41 deletions

View File

@ -1,41 +0,0 @@
image: gradle:alpine
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
before_script:
- GRADLE_USER_HOME="$(pwd)/.gradle"
- export GRADLE_USER_HOME
stages:
- build
- test
- deploy
build:
stage: build
script: gradle --build-cache assemble
cache:
key: "$CI_COMMIT_REF_NAME"
policy: push
paths:
- build
- .gradle
test:
stage: test
script: gradle check
cache:
key: "$CI_COMMIT_REF_NAME"
policy: pull
paths:
- build
- .gradle
deploy:
only:
refs:
- master
stage: deploy
script:
- gradle --build-cache publish -Pmaven="$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/maven"

12
.woodpecker.yml Normal file
View File

@ -0,0 +1,12 @@
pipeline:
maven:
image: gradle:alpine
pull: true
environment:
- GRADLE_OPTS=-Dorg.gradle.daemon=false -Dorg.gradle.jvmargs=-Xmx2G
- GRADLE_USER_HOME=${CI_WORKSPACE}/.gradle
commands:
- gradle publish -Pmaven="https://maven.frohnmeyer-wds.de/artifacts"
secrets: [ maven_token, maven_name ]
when:
- branch: master