File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 49
49
- cd /go/src/github.com/coredns/coredns
50
50
- make
51
51
- mv coredns /go/src/github.com/leiless/dnsredir/bin/coredns_dnsredir-$GOOS-$GOARCH
52
+ when :
53
+ event : tag
52
54
- name : build-coredns-linux-arm64
53
55
image : golang
54
56
environment :
58
60
- cd /go/src/github.com/coredns/coredns
59
61
- make
60
62
- mv coredns /go/src/github.com/leiless/dnsredir/bin/coredns_dnsredir-$GOOS-$GOARCH
63
+ when :
64
+ event : tag
61
65
- name : build-coredns-darwin-amd64
62
66
image : golang
63
67
environment :
67
71
- cd /go/src/github.com/coredns/coredns
68
72
- make
69
73
- mv coredns /go/src/github.com/leiless/dnsredir/bin/coredns_dnsredir-$GOOS-$GOARCH
74
+ when :
75
+ event : tag
70
76
- name : build-coredns-windows-amd64
71
77
image : golang
72
78
environment :
@@ -76,16 +82,25 @@ steps:
76
82
- cd /go/src/github.com/coredns/coredns
77
83
- make
78
84
- mv coredns /go/src/github.com/leiless/dnsredir/bin/coredns_dnsredir-$GOOS-$GOARCH.exe
85
+ when :
86
+ event : tag
79
87
- name : calc-shasum256
80
88
image : alpine
81
89
commands :
82
90
- uname -a
83
91
- cd /go/src/github.com/leiless/dnsredir/bin
92
+ - ls -l coredns*
84
93
- sha256sum coredns* | tee shasum256.txt
85
- - name : publish
94
+ when :
95
+ event : tag
96
+ - name : github-release
86
97
image : plugins/github-release
87
98
settings :
88
99
api_key :
89
100
from_secret : github_token
90
- files : bin/coredns*
101
+ files :
102
+ - bin/coredns*
103
+ - bin/shasum256.txt
104
+ when :
105
+ event : tag
91
106
You can’t perform that action at this time.
0 commit comments