-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
124 lines (110 loc) · 2.04 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
kind: pipeline
type: docker
name: tidy
steps:
- name: tidy
image: notgull/ci:latest
pull: true
commands:
- tidy.sh
---
kind: pipeline
type: docker
name: test-stable
depends_on:
- tidy
steps:
- name: test
image: notgull/ci:latest
pull: always
commands:
- ensure_tool.sh wayland x11
- test_rust.sh stable
---
kind: pipeline
type: docker
name: test-beta
depends_on:
- tidy
steps:
- name: test
image: notgull/ci:latest
pull: always
commands:
- ensure_tool.sh wayland x11
- test_rust.sh beta
---
kind: pipeline
type: docker
name: test-nightly
depends_on:
- tidy
steps:
- name: test
image: notgull/ci:latest
pull: always
commands:
- ensure_tool.sh wayland x11
- test_rust.sh nightly
---
kind: pipeline
type: docker
name: test-msrv
depends_on:
- tidy
steps:
- name: test
image: notgull/ci:latest
pull: always
commands:
- ensure_tool.sh wayland x11
- test_rust.sh 1.65.0
---
kind: pipeline
type: docker
name: release
trigger:
branch:
- main
event:
- push
depends_on:
- test-stable
- test-beta
- test-nightly
- test-msrv
steps:
- name: gitea_release
image: notgull/ci:stable
environment:
SSH_KEY:
from_secret: tea_ssh_key
TEA_CONFIG:
from_secret: tea_config_yml
commands:
- mkdir -pv ~/.ssh && mkdir -pv ~/.config/tea
- echo "$SSH_KEY" > ~/.ssh/id_rsa && chmod 0600 ~/.ssh/id_rsa
- echo "$TEA_CONFIG" > ~/.config/tea/config.yml
- release.sh
---
kind: pipeline
type: docker
name: github
trigger:
branch:
- main
event:
- push
steps:
- name: mirror to GitHub
image: alpine:edge
environment:
SSH_KEY:
from_secret: gh_ssh_key
commands:
- apk add git openssh
- mkdir -pv ~/.ssh
- ssh-keyscan -H -t rsa github.com >> ~/.ssh/known_hosts
- echo "$SSH_KEY" > ~/.ssh/id_rsa && chmod 0600 ~/.ssh/id_rsa
- git remote add github_origin [email protected]:notgull/piet-hardware.git
- git push github_origin main