-
Notifications
You must be signed in to change notification settings - Fork 6
/
.drone.yml
88 lines (81 loc) · 1.85 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
kind: pipeline
name: build
platform:
os: linux
arch: amd64
steps:
- name: build-go
pull: always
image: golang:1.14
commands:
- make promtools.dev
environment:
CGO_ENABLED: 0
GO111MODULE: on
GOPROXY: https://proxy.golang.org
- name: build-ui
pull: always
image: node:14.11.0
commands:
- make web/bundle.js
- name: configuration
pull: always
image: golang:1.14
commands:
- go get github.com/google/go-jsonnet/cmd/jsonnet
- go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
- go get github.com/brancz/gojsontoyaml
- jb install
- make kubernetes.yaml
environment:
CGO_ENABLED: 0
GO111MODULE: off
GOPROXY: https://proxy.golang.org
- name: container
image: plugins/docker
settings:
registry: quay.io
repo: quay.io/metalmatze/slo-libsonnet-web
tag:
- ${DRONE_COMMIT_SHA:0:7}
username:
from_secret: quay_username
password:
from_secret: quay_password
when:
branch:
- master
event:
- push
- name: container-configuration
image: plugins/docker
settings:
dockerfile: Dockerfile.configuration
registry: quay.io
repo: quay.io/metalmatze/slo-libsonnet-web
tag:
- ${DRONE_COMMIT_SHA:0:7}-configuration
username:
from_secret: quay_username
password:
from_secret: quay_password
when:
branch:
- master
event:
- push
- name: deploy
pull: always
image: quay.io/signalcd/drone
environment:
PLUGIN_API_URL:
from_secret: signalcd_api
PLUGIN_BASICAUTH_USERNAME:
from_secret: signalcd_username
PLUGIN_BASICAUTH_PASSWORD:
from_secret: signalcd_password
when:
branch:
- master
event:
- push