auto-deploy-service/.drone.yml
Jay 49281cdc24
Some checks failed
continuous-integration/drone/tag Build is failing
continuous-integration/drone/push Build is passing
udpate
2021-06-15 00:13:05 +08:00

36 lines
603 B
YAML

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
- cd /data && tar cvf release.tar --exclude=release.tar .
- 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/release.tar
checksum:
- md5
- sha1
- sha256
when:
event: tag
volumes:
- name: dist
temp: {}