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-10-15 12:34:18 -04:00
|
|
|
- name: create release-source tar
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go mod vendor
|
|
|
|
- tar -czf release-source-$DRONE_TAG.tar.gz *
|
|
|
|
- mkdir dist
|
|
|
|
- mv release-source-$DRONE_TAG.tar.gz dist/
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
|
|
|
- name: create release-binary tar
|
2021-08-07 13:02:50 -04:00
|
|
|
image: golang
|
|
|
|
commands:
|
2021-08-07 13:34:43 -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
|
|
|
|