forked from syncloud/image
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.drone.yml
More file actions
90 lines (90 loc) · 2.17 KB
/
Copy path.drone.yml
File metadata and controls
90 lines (90 loc) · 2.17 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
---
{
"kind": "pipeline",
"name": "odroid-hc4-all-buster",
"platform": {
"arch": "amd64",
"os": "linux"
},
"steps": [
{
"commands": [
"./tools/extract.sh odroid-hc4 odroid-hc4-base.img"
],
"image": "debian:buster-slim",
"name": "extract",
"privileged": true
},
{
"commands": [
"./tools/boot.sh odroid-hc4 syncloud-odroid-hc4-22.02.img 3G"
],
"image": "debian:buster-slim",
"name": "boot",
"privileged": true
},
{
"commands": [
"./tools/rootfs.sh odroid-hc4 arm64 syncloud-odroid-hc4-22.02.img 22.02 buster"
],
"image": "debian:buster-slim",
"name": "rootfs",
"privileged": true
},
{
"commands": [
"./tools/zip.sh syncloud-odroid-hc4-22.02.img"
],
"image": "debian:buster-slim",
"name": "zip",
"privileged": true
},
{
"image": "plugins/github-release:1.0.0",
"name": "publish to github",
"settings": {
"api_key": {
"from_secret": "github_token"
},
"file_exists": "overwrite",
"files": "syncloud-odroid-hc4-22.02.img*.xz",
"overwrite": true
},
"when": {
"event": [
"tag"
]
}
},
{
"image": "appleboy/drone-scp",
"name": "artifact",
"settings": {
"command_timeout": "2m",
"host": {
"from_secret": "artifact_host"
},
"key": {
"from_secret": "artifact_key"
},
"source": "syncloud-odroid-hc4-22.02.img*.xz",
"target": "/home/artifact/repo/image",
"username": "artifact"
}
},
{
"commands": [
"./cleanup.sh"
],
"image": "debian:buster-slim",
"name": "cleanup",
"privileged": true,
"when": {
"status": [
"failure",
"success"
]
}
}
]
}