2022-06-25 10:49:41 +00:00
|
|
|
kind: pipeline
|
2022-09-24 11:06:28 +00:00
|
|
|
type: exec
|
2022-06-25 10:49:41 +00:00
|
|
|
name: default
|
|
|
|
|
2022-09-24 16:26:19 +00:00
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
2022-06-25 10:49:41 +00:00
|
|
|
steps:
|
2022-06-26 16:28:27 +00:00
|
|
|
- name: restore-cache-with-filesystem
|
2022-09-24 16:26:19 +00:00
|
|
|
commands:
|
|
|
|
- ls -a /tmp/drone/Elixium/Raxen
|
|
|
|
- ls -a
|
|
|
|
- cp -r /tmp/drone/Elixium/Raxen $(pwd)/
|
|
|
|
- ls -a
|
|
|
|
# settings:
|
|
|
|
# restore: true
|
|
|
|
# mount:
|
|
|
|
# - ./build
|
|
|
|
# - ./.gradle
|
|
|
|
# ## Mount the cache volume, needs "Trusted"
|
|
|
|
# volumes:
|
|
|
|
# - name: cache
|
|
|
|
# path: /cache
|
2022-06-26 16:28:27 +00:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
commands:
|
2022-06-27 17:15:43 +00:00
|
|
|
- ls -a
|
2022-06-26 16:28:27 +00:00
|
|
|
- gradle assemble --stacktrace
|
2022-06-27 17:15:43 +00:00
|
|
|
- ls -a
|
2022-06-26 16:28:27 +00:00
|
|
|
|
|
|
|
- name: gitea_release
|
2022-06-26 16:49:50 +00:00
|
|
|
when:
|
2022-09-24 16:26:19 +00:00
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
commands:
|
|
|
|
- export PRERELEASE=true
|
|
|
|
- chmod +x git_release.sh
|
|
|
|
- python git_release.py --token "$API_KEY" --message "${DRONE_COMMIT_MESSAGE}" --prerelease $PRERELEASE --tag "${DRONE_TAG}"
|
|
|
|
environment:
|
|
|
|
API_KEY:
|
|
|
|
from_secret: api_key
|
|
|
|
# settings:
|
|
|
|
# base_url: https://git.unurled.me
|
|
|
|
# files: build/libs/*
|
|
|
|
# api_key:
|
|
|
|
# from_secret: api_key
|
|
|
|
# prerelease: true
|
|
|
|
# when:
|
|
|
|
# event: tag
|
2022-06-26 16:28:27 +00:00
|
|
|
|
2022-06-26 17:41:57 +00:00
|
|
|
- name: rebuild-cache-with-filesystem
|
2022-09-24 16:26:19 +00:00
|
|
|
commands:
|
|
|
|
- ls -a
|
|
|
|
- mkdir -p /tmp/drone/Elixium/Raxen
|
|
|
|
- ls -a /tmp/drone/Elixium/Raxen
|
|
|
|
- mv -f -t $(pwd)/build/classes /tmp/drone/Elixium/Raxen
|
|
|
|
- mv -f -t $(pwd)/build/generated /tmp/drone/Elixium/Raxen
|
|
|
|
- mv -f -t $(pwd)/build/resources /tmp/drone/Elixium/Raxen
|
|
|
|
- mv -f -t $(pwd)/build/tmp /tmp/drone/Elixium/Raxen
|
|
|
|
- mv -f -t $(pwd)/.gradle /tmp/drone/Elixium/Raxen
|
|
|
|
- ls -a
|
|
|
|
- ls -a /tmp/drone/Elixium/Raxen
|
|
|
|
# image: drillster/drone-volume-cache
|
|
|
|
# settings:
|
|
|
|
# rebuild: true
|
|
|
|
# mount:
|
|
|
|
# - ./build
|
|
|
|
# - ./.gradle
|
|
|
|
# # Mount the cache volume, needs "Trusted"
|
|
|
|
# volumes:
|
|
|
|
# - name: cache
|
|
|
|
# path: /cache
|