forked from rancher/hyperkube-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.drone.yml
More file actions
156 lines (143 loc) · 3.01 KB
/
.drone.yml
File metadata and controls
156 lines (143 loc) · 3.01 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
kind: pipeline
name: default-linux-amd64
platform:
os: linux
arch: amd64
steps:
- name: prepare-amd64-binaries
image: ubuntu:20.04
commands:
- apt-get -y update && apt-get -y install make curl tar
- make cni-bin/bin && make scripts/iptables-wrapper-installer.sh
when:
event:
- push
- pull_request
- tag
- name: docker-publish-head
image: plugins/docker
settings:
build_args:
- ARCH=amd64
- VERSION=${DRONE_BRANCH/release\//}-${DRONE_BUILD_NUMBER}-head
custom_dns: 1.1.1.1
dockerfile: Dockerfile
tag: ${DRONE_BRANCH/release\//}-head-linux-amd64
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: rancher/hyperkube-base
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: docker-publish
image: plugins/docker
settings:
build_args:
- ARCH=amd64
- "VERSION=${DRONE_TAG}"
custom_dns: 1.1.1.1
dockerfile: Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: rancher/hyperkube-base
tag: "${DRONE_TAG}-linux-amd64"
when:
event:
- tag
---
kind: pipeline
name: default-linux-arm64
platform:
os: linux
arch: arm64
steps:
- name: prepare-arm64-binaries
image: ubuntu:20.04
commands:
- apt-get -y update && apt-get -y install make curl tar
- make ARCH=arm64 cni-bin/bin && make ARCH=arm64 scripts/iptables-wrapper-installer.sh
when:
event:
- push
- pull_request
- tag
- name: docker-publish-head
image: plugins/docker
settings:
build_args:
- ARCH=arm64
- VERSION=${DRONE_BRANCH/release\//}-${DRONE_BUILD_NUMBER}-head
custom_dns: 1.1.1.1
dockerfile: Dockerfile
tag: ${DRONE_BRANCH/release\//}-head-linux-arm64
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: rancher/hyperkube-base
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: docker-publish
image: plugins/docker
settings:
build_args:
- ARCH=arm64
- "VERSION=${DRONE_TAG}"
custom_dns: 1.1.1.1
dockerfile: Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: rancher/hyperkube-base
tag: "${DRONE_TAG}-linux-arm64"
when:
event:
- tag
---
kind: pipeline
name: manifest
steps:
- name: push-head-manifest
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
spec: manifest.tmpl
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: push-manifest
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
spec: manifest.tmpl
when:
event:
- tag
depends_on:
- default-linux-amd64
- default-linux-arm64