forked from observatorium/thanos-receive-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
69 lines (61 loc) · 1.17 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
---
kind: pipeline
name: build
platform:
os: linux
arch: amd64
steps:
- name: test
pull: always
image: golang:1.14.2
commands:
- make test
- name: lint
pull: always
image: golang:1.14.2
commands:
- make lint
- git diff --exit-code
- name: build
pull: always
image: golang:1.14.2
commands:
- make thanos-receive-controller
- name: generate
pull: always
image: quay.io/coreos/jsonnet-ci:latest
commands:
- make generate validate --always-make
- git diff --exit-code
- name: tags
image: golang:1.14.2
commands:
- echo -n "$(git rev-parse --abbrev-ref HEAD | tr / -)-$(date +%Y-%m-%d)-$(git rev-parse --short HEAD),latest" > .tags
when:
branch:
- master
event:
- push
- name: docker
image: plugins/docker
settings:
registry: quay.io
repo: quay.io/observatorium/thanos-receive-controller
password:
from_secret: quay_password
username:
from_secret: quay_username
when:
branch:
- master
event:
- push
- name: docker-test
image: plugins/docker
settings:
dry_run: true
repo: quay.io/observatorium/thanos-receive-controller
when:
branch:
event:
- pull-request