-
Notifications
You must be signed in to change notification settings - Fork 4
/
.drone.yml
45 lines (42 loc) · 879 Bytes
/
.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
kind: pipeline
name: default
workspace:
base: /go
path: src/gogs.yunss.com/go/flysnow
steps:
- name: build
image: golang
environment:
GOPROXY: http://192.168.1.51:6500
GO111MODULE: on
GOCACHE: /cache
CGO_ENABLED: 0
commands:
- git submodule init
- git submodule update
- go run -v parser.go
- go build -o srv main.go
- go build -o update tools/update.go
volumes:
- name: cache
path: /cache
- name: docker
image: plugins/docker
settings:
username: admin
password: Shengyun123
registry: harbor.yunss.com:5000
repo: harbor.yunss.com:5000/shanshou/flysnow
tags: test
insecure: true
trigger:
branch:
- shanshou
- shanshou1000
- shanshou2000
- suyang
- qindao
volumes:
- name: cache
host:
path: /var/cache/go