-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path.drone.yml
66 lines (57 loc) · 993 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
kind: pipeline
type: docker
name: linux_amd64
environment:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
steps:
- name: build-linux-amd64
image: golang:1.17
commands:
- make build
- ./release/linux/amd64/helloworld -h
---
kind: pipeline
type: docker
name: linux_386
environment:
GOOS: linux
GOARCH: 386
CGO_ENABLED: 0
steps:
- name: build-linux-386
image: golang:1.17
commands:
- make build
- ./release/linux/386/helloworld -h
---
kind: pipeline
type: docker
name: build_all
steps:
- name: build-linux-386
image: golang:1.17
environment:
GOOS: linux
GOARCH: 386
CGO_ENABLED: 0
commands:
- make build
- ./release/linux/386/helloworld -h
- name: build-linux-amd64
image: golang:1.17
environment:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
commands:
- make build
- ./release/linux/amd64/helloworld -h
- name: notify
image: golang:1.17
commands:
- echo "Done!"
depends_on:
- build-linux-amd64
- build-linux-386