add ci setting
This commit is contained in:
parent
cc128b5b9d
commit
52680ec8f5
34
.drone.yml
Normal file
34
.drone.yml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: release
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: golang:rc
|
||||||
|
volumes:
|
||||||
|
- name: dist
|
||||||
|
path: /data
|
||||||
|
commands:
|
||||||
|
- make build
|
||||||
|
- cp -r contrib /data
|
||||||
|
- cp deploy /data
|
||||||
|
- cp config.yml.sample /data/config.yml
|
||||||
|
- name: relase
|
||||||
|
image: plugins/gitea-release
|
||||||
|
volumes:
|
||||||
|
- name: dist
|
||||||
|
path: /data
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: api-key
|
||||||
|
base_url: https://git.trj.tw
|
||||||
|
files: /data/*
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha1
|
||||||
|
- sha256
|
||||||
|
when:
|
||||||
|
event: tag
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dist
|
||||||
|
temp: {}
|
Loading…
Reference in New Issue
Block a user