-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
47 lines (43 loc) · 1.06 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
kind: pipeline
name: default
clone:
depth: 1
steps:
- name: build
image: golang
environment:
GOOS: linux
GOARCH: amd64
GO111MODULE: on
CGO_ENABLED: 0
GOPROXY: https://goproxy.io
commands:
- go build -v -o app
- name: docker
image: plugins/docker
settings:
registry: registry.cn-hangzhou.aliyuncs.com
mirror:
from_secret: docker_mirror
username:
from_secret: docker_user
password:
from_secret: docker_pass
repo: registry.cn-hangzhou.aliyuncs.com/dexdev/kuu-boilerplate
tags: ${DRONE_COMMIT_BRANCH}-${DRONE_BUILD_NUMBER}
- name: deploy
image: ystyle/drone-plugin-rancher2
settings:
access_key:
from_secret: rancher_key
secret_key:
from_secret: rancher_secret
api:
from_secret: rancher_api
data: |
[
{
"name": "kuu-boilerplate",
"image": "registry.cn-hangzhou.aliyuncs.com/dexdev/kuu-boilerplate:${DRONE_COMMIT_BRANCH}-${DRONE_BUILD_NUMBER}"
}
]