simpbot/.drone.yml

29 lines
490 B
YAML
Raw Normal View History

2021-08-04 18:06:13 -04:00
kind: pipeline
name: default
steps:
- name: build
image: golang
commands:
- make
2021-08-04 18:27:52 -04:00
2021-08-07 13:02:50 -04:00
- name: create release tar
image: golang
commands:
2021-08-07 13:12:01 -04:00
- mkdir dist
2021-08-07 13:33:29 -04:00
- tar -czf dist/release-$DRONE_TAG-DRONE_STAGE_ARCH.tar.gz init/simpbot.service config.yaml.sample simpbot
2021-08-07 13:02:50 -04:00
when:
event: tag
2021-08-04 18:27:52 -04:00
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
files:
2021-08-07 13:12:01 -04:00
- dist/*
2021-08-04 18:27:52 -04:00
base_url: https://git.saintnet.tech
when:
2021-08-04 18:41:29 -04:00
event: tag
2021-08-04 18:27:52 -04:00