-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
50 lines (45 loc) · 1.01 KB
/
.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
name: default
steps:
- name: build
image: golang:alpine
environment:
CGO_ENABLED: 0
commands:
- go build -mod=vendor -o dronetrigger-linux-amd64 ./cmd/dronetrigger
- go build -mod=vendor -o dronetrigger-web-linux-amd64 ./cmd/dronetrigger-web
- name: release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- dronetrigger-linux-amd64
- dronetrigger-web-linux-amd64
checksum:
- md5
- sha1
- sha256
when:
event: tag
- name: docker staging
image: plugins/docker
settings:
<<: &build
repo: bitsbeats/dronetrigger-web
username: { from_secret: docker_username }
password: { from_secret: docker_password }
tags: staging
when:
event:
- push
branch:
- master
- name: docker release
image: plugins/docker
settings:
<<: *build
auto_tag: true
when:
event:
- tag