-
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (60 loc) · 1.74 KB
/
update-flakes.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
name: Nix Flake Builds
on:
schedule:
- cron: "30 6 * * 5"
push:
branches: [main]
permissions:
contents: write
actions: write
jobs:
update-lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Deterinate Nix
uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
- name: Update flake
run: |
echo ::group::Updating lockfile
nix flake update
echo ::endgroup::
echo ::group::Metadata
nix flake metadata
echo ::endgroup::
- name: Commit and push changes
run: |
git config --global user.name "RecapTimeBot"
git config --global user.email "recaptimebot@gmail.com"
git add flake.lock
git commit -m "Update flake.lock [skip-ci]" || echo "No changes to commit"
git push
build-iso:
concurrency:
cancel-in-progress: false
group: recoverykit-iso-builds
needs: [update-lockfile]
name: Build recovery ISO
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Deterinate Nix
uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
- run: nix flake metadata
- run: |
mkdir dist
echo ::group::Building amd64 minimal ISO file
nix build .#nixosConfigurations.recoverykit-amd64.config.system.build.isoImage --verbose --show-trace
cp result/iso/*.iso ./dist/ -rv
echo ::endgroup
- name: Upload as artifact
uses: actions/upload-artifact@v4
with:
name: nixos-recoverykit-iso
path: dist