-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
76 lines (75 loc) · 1.37 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
---
depends_on: []
kind: pipeline
name: ci
services:
- image: docker:dind
name: docker
privileged: true
volumes:
- name: dockersock
path: /var/run
steps:
- commands:
- make test
image: golang
name: test
- commands:
- make docker-build registry=reg.dist.svc.cluster.znet:5000
image: reg.dist.svc.cluster.znet:5000/zachfi/build-image
name: build-image
volumes:
- name: dockersock
path: /var/run
when:
ref:
- refs/heads/main
- commands:
- make docker-push registry=reg.dist.svc.cluster.znet:5000
environment:
DOCKER_PASSWORD:
from_secret: DOCKER_PASSWORD
DOCKER_USERNAME:
from_secret: DOCKER_USERNAME
image: reg.dist.svc.cluster.znet:5000/zachfi/build-image
name: push-image
volumes:
- name: dockersock
path: /var/run
when:
ref:
- refs/heads/main
trigger:
ref:
- refs/heads/main
- refs/heads/dependabot/**
- refs/pull/*/head
volumes:
- name: dockersock
temp: {}
---
depends_on: []
kind: pipeline
name: release
steps:
- commands:
- make release
environment:
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
image: reg.dist.svc.cluster.znet:5000/zachfi/build-image
name: release
pull: always
when:
ref:
- refs/tags/v*
trigger:
ref:
- refs/tags/v*
volumes:
- name: dockersock
temp: {}
---
kind: signature
hmac: 6d6f2eeb3623acb6e90e6279c9f4268eef9e64d4cb909ac8d3b7d6a2b7a131e8
...