-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy path.drone.yml
91 lines (83 loc) · 1.71 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
---
kind: pipeline
name: amd64
platform:
os: linux
arch: amd64
trigger:
branch:
- master
- v*
steps:
- name: build
image: rancher/dapper:v0.5.8
commands:
- dapper ci
volumes:
- name: docker
path: /var/run/docker.sock
- name: publish-head
image: plugins/gcs
settings:
acl:
- allUsers:READER
cache_control: "public,no-cache,proxy-revalidate"
source: dist/artifacts
target: releases.rancher.com/harvester/${DRONE_BRANCH}
token:
from_secret: google_auth_key
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/v*"
event:
- push
- cron
- name: docker-publish-cluster-repo-branch
image: plugins/docker
settings:
context: dist/harvester-cluster-repo
custom_dns: 1.1.1.1
dockerfile: dist/harvester-cluster-repo/Dockerfile
repo: "rancher/harvester-cluster-repo"
tag: ${DRONE_BRANCH}-head-amd64
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
instance:
- drone-publish.rancher.io
ref:
include:
- "refs/heads/master"
- "refs/heads/v*"
event:
- push
- cron
- name: manifest-cluster-repo-branch
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms:
- linux/amd64
target: "rancher/harvester-cluster-repo:${DRONE_BRANCH}-head"
template: "rancher/harvester-cluster-repo:${DRONE_BRANCH}-head-ARCH"
when:
instance:
- drone-publish.rancher.io
ref:
include:
- "refs/heads/master"
- "refs/heads/v*"
event:
- push
- cron
volumes:
- name: docker
host:
path: /var/run/docker.sock