-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
39 lines (37 loc) · 912 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: arm64
steps:
- name: build
image: openjdk:8-jdk
commands:
- ./gradlew --no-daemon build
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.jcm.re
files:
- build/libs/*
- build/distributions/*
when:
event:
- tag
- name: publish_artifact
image: curlimages/curl
environment:
GITEA_TOKEN:
from_secret: gitea_token
GITEA_USER:
from_secret: gitea_user
commands:
- "curl --fail-with-body --user $${GITEA_USER}:$${GITEA_TOKEN} --upload-file build/libs/DynamicWallpaper-*-all.jar https://git.jcm.re/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_BRANCH}-${DRONE_BUILD_NUMBER}-${DRONE_COMMIT_SHA:0:8}/DynamicWallpaper-all.jar"
when:
event:
- push
depends_on:
- build