modify ci config

This commit is contained in:
Jay 2019-05-09 16:55:20 +08:00
parent 4e16cdfb0e
commit 61c803374f

View File

@ -12,6 +12,19 @@ steps:
- go build -o /build/ddns-client -ldflags "-w -s" . - go build -o /build/ddns-client -ldflags "-w -s" .
- cp config.default.yml /build/config.yml - 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 - name: gitea release
image: plugins/gitea-release image: plugins/gitea-release
volumes: volumes: