forked from siderolabs/conform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
91 lines (82 loc) · 1.66 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
89
90
91
kind: pipeline
type: kubernetes
name: default
services:
- name: docker
image: docker:19.03-dind
entrypoint: [dockerd]
privileged: true
volumes:
- name: dockersock
path: /var/run
steps:
- name: git-fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: build
image: autonomy/build-container:latest
pull: always
commands:
- make build
volumes:
- name: dockersock
path: /var/run
- name: conform
image: autonomy/build-container:latest
pull: always
commands:
- build/conform-linux-amd64 enforce
volumes:
- name: dockersock
path: /var/run
- name: test
image: autonomy/build-container:latest
pull: always
commands:
- make test
volumes:
- name: dockersock
path: /var/run
- name: image
image: autonomy/build-container:latest
pull: always
commands:
- make image
volumes:
- name: dockersock
path: /var/run
- name: push
image: autonomy/build-container:latest
pull: always
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
commands:
- make login
- make push
volumes:
- name: dockersock
path: /var/run
when:
event:
exclude:
- pull_request
- name: release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
draft: true
files:
- build/conform-*
checksum:
- sha256
- sha512
when:
event: tag
volumes:
- name: dockersock
temp: {}