-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
80 lines (76 loc) · 1.52 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
kind: pipeline
type: docker
name: publish
trigger:
event:
- push
ref:
- refs/heads/master
steps:
- name: restore-cache
image: drillster/drone-volume-cache
pull: if-not-exists
settings:
restore: true
mount:
- /go
- /root/.cache/go-build
volumes:
- name: cache
path: /cache
- name: go
path: /go
- name: go-build
path: /root/.cache/go-build
- name: build
image: git.s8k.top/library/golang-gcc
environment:
GOPROXY: https://goproxy.cn,direct
pull: if-not-exists
depends_on:
- restore-cache
commands:
- go build -o app ./cmd
volumes:
- name: go
path: /go
- name: go-build
path: /root/.cache/go-build
- name: rebuild-cache
image: drillster/drone-volume-cache
pull: if-not-exists
depends_on:
- build
settings:
rebuild: true
mount:
- /go
- /root/.cache/go-build
volumes:
- name: cache
path: /cache
- name: go
path: /go
- name: go-build
path: /root/.cache/go-build
- name: docker
image: plugins/docker
pull: if-not-exists
depends_on:
- build
settings:
registry: git.s8k.top
username: SeraphJACK
password:
from_secret: gitea_token
repo: git.s8k.top/seraphjack/beanbot
tags:
- latest
volumes:
- name: cache
host:
path: /var/lib/drone-runner/cache
- name: go
temp: { }
- name: go-build
temp: { }