modify ci config

This commit is contained in:
Jay 2019-05-09 16:55:20 +08:00
parent 4e16cdfb0e
commit 61c803374f
1 changed files with 13 additions and 0 deletions

View File

@ -12,6 +12,19 @@ steps:
- go build -o /build/ddns-client -ldflags "-w -s" .
- cp config.default.yml /build/config.yml
- name: pack release
image: alpine
volumes:
- name: deps
path: /build
commands:
- apk add --no-cache zip
- |
cd /build
zip -r release.zip ddns-client config.yml
when:
event: tag
- name: gitea release
image: plugins/gitea-release
volumes: