From 24e2118c8015a159826bc19d72e32f8a0b86d55c Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 7 Aug 2021 14:32:34 -0400 Subject: [PATCH] add ci --- .drone.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e23ef41 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,28 @@ +kind: pipeline +name: default + +steps: +- name: build + image: golang + commands: + - make + +- name: create release tar + image: golang + commands: + - mkdir dist + - tar -czf dist/release-$DRONE_TAG-$DRONE_STAGE_ARCH.tar.gz init/guildgate.service config.yaml.sample guildgate + when: + event: tag + +- name: release + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_token + files: + - dist/* + base_url: https://git.saintnet.tech + when: + event: tag +