woodpecker !
This commit is contained in:
parent
499aeaf2b5
commit
3d3a32f6ea
1 changed files with 49 additions and 0 deletions
49
.woodpecker.yml
Normal file
49
.woodpecker.yml
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
platform: linux/amd64
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
restore-cache:
|
||||||
|
image: bash
|
||||||
|
commands:
|
||||||
|
- mkdir -p /tmp/drone/Elixium/Raxen
|
||||||
|
- ls -a /tmp/drone/Elixium/Raxen
|
||||||
|
- ls -a
|
||||||
|
- cp -r /tmp/drone/Elixium/Raxen/* $(pwd)/
|
||||||
|
- ls -a
|
||||||
|
volumes:
|
||||||
|
- /tmp/woodpecker/Elixium/Raxen:/tmp/woodpecker/Elixium/Raxen
|
||||||
|
|
||||||
|
build:
|
||||||
|
image: gradle:jdk17
|
||||||
|
commands:
|
||||||
|
- ls -a
|
||||||
|
- chmod +x gradlew
|
||||||
|
- ./gradlew assemble --stacktrace
|
||||||
|
- ls -a
|
||||||
|
|
||||||
|
gitea_release:
|
||||||
|
image: bash
|
||||||
|
secrets:
|
||||||
|
- api_key
|
||||||
|
commands:
|
||||||
|
- export PRERELEASE=true
|
||||||
|
- chmod +x git_release.py
|
||||||
|
- pip install giteapy
|
||||||
|
- python git_release.py --token "$API_KEY" --message "${DRONE_COMMIT_MESSAGE}" --prerelease $PRERELEASE --tag "${DRONE_TAG}"
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
rebuild-cache-with-filesystem
|
||||||
|
image: bash
|
||||||
|
commands:
|
||||||
|
- ls -a
|
||||||
|
- mkdir -p /tmp/drone/Elixium/Raxen
|
||||||
|
- ls -a /tmp/drone/Elixium/Raxen
|
||||||
|
- cp -f -R $(pwd)/build/classes /tmp/drone/Elixium/Raxen/build/classes
|
||||||
|
- cp -f -R $(pwd)/build/generated /tmp/drone/Elixium/Raxen/build/generated
|
||||||
|
- cp -f -R $(pwd)/build/resources /tmp/drone/Elixium/Raxen/build/resources
|
||||||
|
- cp -f -R $(pwd)/build/tmp /tmp/drone/Elixium/Raxen/build/tmp
|
||||||
|
- cp -f -R $(pwd)/.gradle /tmp/drone/Elixium/Raxen
|
||||||
|
- ls -a
|
||||||
|
- ls -a /tmp/drone/Elixium/Raxen
|
||||||
|
volumes:
|
||||||
|
- /tmp/woodpecker/Elixium/Raxen:/tmp/woodpecker/Elixium/Raxen
|
Loading…
Reference in a new issue