Skip to content

Build recoverykit-amd64 ISO and upload as CI artifact #21

Build recoverykit-amd64 ISO and upload as CI artifact

Build recoverykit-amd64 ISO and upload as CI artifact #21

Workflow file for this run

name: Nix Flake Builds
on:
schedule:
- cron: "30 */6 * * *"
push:
branches: [main]
jobs:
update-lockfile:
permissions:
contents: write
actions: write
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 ::addgroup::Updating lockfile
nix flake update
echo ::endgroup::
echo ::addgroup::Metadata
nix flake metadata
echo ::endgroup::
- name: Commit and push changes
run: |
git config --global user.name "RecapTimeBot"
git config --global user.email "[email protected]"
git add flake.lock
git commit -m "Update flake.lock" || echo "No changes to commit"
git push
build-iso:
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 ::addgroup::Building amd64 minimal ISO file
nix build .#nixosConfigurations.recoverykit-amd64.config.system.build.isoImage --verbose --show-trace
cp result/iso/*.iso ./out/ -rv
echo ::endgroup
- name: Upload as artifact
uses: actions/upload-artifact@v4
with:
name: nixos-recoverykit-iso
path: dist