This repository has been archived by the owner on May 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.drone.yml
67 lines (62 loc) · 1.46 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
kind: pipeline
name: default # Default build routine, releases to Github if tagged
steps:
- name: build
image: golang:1.11.9-stretch
commands:
- make TAG=$DRONE_TAG build
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
title: Release $DRONE_TAG
files: dist/*
when:
event: tag
---
kind: pipeline
name: release-latest # Latest release to GCS, triggers for tag commits
steps:
- name: build
image: golang:1.11.9-stretch
commands:
- make TAG=latest build
- name: release
image: plugins/gcs
settings:
source: dist
target: tm-tiffany/releases/
ignore: tiffany.out
acl: allUsers:READER
token:
from_secret: gcs_token
trigger:
event:
- tag
---
kind: pipeline
name: release-nightly # Nightly releases to GCS, triggers only at master
steps:
- name: build
image: golang:1.11.9-stretch
commands:
- make TAG=nightly build
- name: release
image: plugins/gcs
settings:
source: dist
target: tm-tiffany/releases/
ignore: tiffany.out
acl: allUsers:READER
token:
from_secret: gcs_token
when:
branch:
- master
event:
exclude:
- pull_request
trigger:
branch:
- master