From 52680ec8f562ab7df1f0c1f8fdf9673c7639c932 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 15 Jun 2021 00:02:37 +0800 Subject: [PATCH] add ci setting --- .drone.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c365136 --- /dev/null +++ b/.drone.yml @@ -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: {}