-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
50 lines (46 loc) · 875 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
kind: pipeline
type: docker
name: default
clone:
depth: 1
steps:
- name: test compile
image: golang:1.14.1
commands:
- go build
when:
event:
- push
- name: compile
image: techknowlogick/xgo:latest
entrypoint:
- /bin/sh -c
commands:
- apt-get update
- apt-get install zip
- cd ..
- cp -r src /go/src/historian
- /build.sh historian
- ls /build
- cd src
- zip -j ${DRONE_REPO_NAME}_${DRONE_TAG}.zip /build/*
when:
event:
- tag
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- ${DRONE_REPO_NAME}_${DRONE_TAG}.zip
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event:
- tag