-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.drone.yml
41 lines (37 loc) · 956 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
workspace:
base: /go
path: src/toroid.io/drone-plugins/drone-kicad
pipeline:
buildgo:
image: golang
environment:
- CGO_ENABLED=0
- GOOS=linux
- GOARCH=amd64
commands:
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
scripts:
image: bravissimolabs/alpine-git
commands:
- git clone https://github.com/Toroid-io/kicad-ci-scripts
- git clone https://github.com/yaqwsx/PcbDraw
when:
event: deployment
publish:
image: plugins/docker
repo: toroid/drone-kicad
tags: [latest, 0.5.5]
when:
branch: master
event: deployment
environment: production
secrets: [docker_username, docker_password]
publish-test:
image: plugins/docker
repo: toroid/drone-kicad
tags: ${DRONE_DEPLOY_TO}
when:
event: deployment
environment:
exclude: production
secrets: [docker_username, docker_password]