forked from rancher/k3os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
105 lines (95 loc) · 1.77 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
kind: pipeline
type: kubernetes
name: arm64
platform:
os: linux
arch: arm64
steps:
- name: build
image: rancher/dapper:v0.5.0
commands:
- until docker info; do echo Waiting Docker to become healthy; sleep 2; done;
- dapper ci
volumes:
- name: dockersock
path: /var/run
- name: github_binary_release
image: ibuildthecloud/github-release:v0.0.1
settings:
api_key:
from_secret: github_token
prerelease: true
checksum:
- sha256
checksum_file: CHECKSUMsum-arm64.txt
checksum_flatten: true
files:
- "dist/artifacts/*"
environment:
DRONE_REPO_OWNER: mazzy89
when:
instance:
- drone.hzk8s.k3s.mazzarino.cz
ref:
- refs/head/master
- refs/tags/*
event:
- tag
- name: docker-publish
image: plugins/docker
settings:
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: "mazzy/k3os"
tag: "${DRONE_TAG}-arm64"
username:
from_secret: docker_username
when:
instance:
- drone.hzk8s.k3s.mazzarino.cz
ref:
- refs/head/master
- refs/tags/*
event:
- tag
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}
---
kind: pipeline
type: kubernetes
name: manifest
platform:
os: linux
arch: arm64
steps:
- name: manifest
image: plugins/manifest:1.0.2
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms:
- linux/arm64
target: "mazzy/k3os:${DRONE_TAG}"
template: "mazzy/k3os:${DRONE_TAG}-ARCH"
when:
instance:
- drone.hzk8s.k3s.mazzarino.cz
ref:
- refs/head/master
- refs/tags/*
event:
- tag
depends_on:
- arm64