auto-deploy-service/.drone.yml

37 lines
628 B
YAML
Raw Permalink Normal View History

2021-06-14 16:02:37 +00:00
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
2021-06-14 16:12:17 +00:00
- cd /data && tar cvf release.tar --exclude=release.tar .
2021-07-02 02:33:33 +00:00
- name: release
2021-06-14 16:02:37 +00:00
image: plugins/gitea-release
volumes:
- name: dist
path: /data
settings:
api_key:
from_secret: api-key
base_url: https://git.trj.tw
2021-06-14 16:13:05 +00:00
files: /data/release.tar
2021-06-14 16:16:56 +00:00
title: ${DRONE_TAG}
2021-06-14 16:02:37 +00:00
checksum:
- md5
- sha1
- sha256
when:
event: tag
volumes:
- name: dist
temp: {}