forked from observatorium/up
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
84 lines (75 loc) · 1.43 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
---
kind: pipeline
name: build
platform:
os: linux
arch: amd64
steps:
- name: test
pull: always
image: golang:1.14
commands:
- apt-get update && apt-get install unzip
- go test -v -race ./...
- make test-integration
environment:
# -race requires cgo
CGO_ENABLED: 1
GO111MODULE: on
GOPROXY: https://proxy.golang.org
- name: lint
pull: always
image: golang:1.14
commands:
- make lint
- name: build
pull: always
image: golang:1.14
commands:
- go build -v ./cmd/up
environment:
CGO_ENABLED: 0
GO111MODULE: on
GOPROXY: https://proxy.golang.org
- name: generate
pull: always
image: golang:1.14
commands:
- make generate --always-make
- git diff --exit-code
environment:
CGO_ENABLED: 0
GO111MODULE: on
GOPROXY: https://proxy.golang.org
- name: tags
image: golang:1.14
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/up
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/up
when:
branch:
event:
- pull-request