-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
202 lines (158 loc) · 6.94 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
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
---
kind: pipeline
type: exec
name: Show flake info
platform:
os: linux
arch: amd64
clone:
depth: 1
steps:
- name: Show flake info
commands:
- nix flake show
- nix flake metadata
# - nix flake check
trigger:
event:
- push
- pull_request
---
kind: pipeline
type: exec
name: build desktop systems
platform:
os: linux
arch: amd64
clone:
depth: 1
steps:
- name: Build laptop
commands:
- nix build -v -L '.#nixosConfigurations.laptop.config.system.build.toplevel'
- mv result result-laptop
- name: Build desktop
commands:
- nix build -v -L '.#nixosConfigurations.desktop.config.system.build.toplevel'
- mv result result-desktop
- name: show laptop size
commands:
- nix path-info --closure-size -h $(readlink -f result-laptop)
- name: show desktop size
commands:
- nix path-info --closure-size -h $(readlink -f result-desktop)
- name: upload to binary cache via s3
commands:
- nix run github:mayniklas/nixos#s3uploader
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_key
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret
trigger:
event:
- push
- pull_request
---
kind: pipeline
type: exec
name: build arm
platform:
os: linux
arch: arm64
clone:
depth: 1
steps:
- name: Build arm
commands:
- nix build -v -L '.#nixosConfigurations.arm.config.system.build.toplevel'
- name: show closure size
commands:
- nix path-info --closure-size -h $(readlink -f result)
- name: upload to binary cache via s3
commands:
- nix run github:mayniklas/nixos#s3uploader
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_key
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret
trigger:
event:
- push
- pull_request
---
kind: pipeline
type: exec
name: build flake update x86
platform:
os: linux
arch: amd64
clone:
depth: 1
steps:
- name: create result-old files
commands:
- nix build -v '.#nixosConfigurations.laptop.config.system.build.toplevel'
- mv result laptop-old
- nix build -v '.#nixosConfigurations.desktop.config.system.build.toplevel'
- mv result desktop-old
- name: flake update
commands:
- nix --experimental-features "nix-command flakes" flake update
- name: Show git diff
commands:
- git diff
- name: Build laptop
commands:
- nix build -v '.#nixosConfigurations.laptop.config.system.build.toplevel'
- mv result laptop-new
- name: Build desktop
commands:
- nix build -v '.#nixosConfigurations.desktop.config.system.build.toplevel'
- mv result desktop-new
- name: Print report
commands:
- echo "laptop:" && nix store diff-closures $(readlink -f laptop-old) $(readlink -f laptop-new)
- echo "desktop:" && nix store diff-closures $(readlink -f desktop-old) $(readlink -f desktop-new)
trigger:
branch:
- main
event:
- cron
---
kind: pipeline
type: exec
name: build flake update arm
platform:
os: linux
arch: arm64
clone:
depth: 1
steps:
- name: create result-old files
commands:
- nix build -v '.#nixosConfigurations.arm.config.system.build.toplevel'
- mv result arm-old
- name: flake update
commands:
- nix --experimental-features "nix-command flakes" flake update
- name: Show git diff
commands:
- git diff
- name: Build arm
commands:
- nix build -v '.#nixosConfigurations.arm.config.system.build.toplevel'
- mv result arm-new
- name: Print report
commands:
- echo "arm:" && nix store diff-closures $(readlink -f arm-old) $(readlink -f arm-new)
trigger:
branch:
- main
event:
- cron
---
kind: secret
name: id_rsa
data: IQOjd5qO0bJyPqVPpZvnoc24AnQjgjoQgVy3+oMQpg/+RtlPTdKddzvNHueA3S9yKQBZq5WTr8Ak63/kqaIEKFXFWrp+sqXwqWD4q2a1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