guildgate/.drone.yml
Steve b0d3778a81
All checks were successful
continuous-integration/drone/tag Build is passing
update drone config
2021-10-15 11:19:55 -04:00

39 lines
734 B
YAML

kind: pipeline
name: default
steps:
- name: build
image: golang
commands:
- make
- name: create release-source tar
image: golang
commands:
- mkdir dist
- go mod vendor
- tar --exclude='/dist' --exclude='/dist/*' -czf dist/release-source-$DRONE_TAG-$DRONE_STAGE_ARCH.tar.gz *
when:
event: tag
- name: create release-binary tar
image: golang
commands:
- mkdir build
- DESTDIR=build make install
- tar -czf dist/release-$DRONE_TAG-$DRONE_STAGE_ARCH.tar.gz build/* init/*
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