2023-12-17 14:42:55 +00:00
|
|
|
name: Installer
|
2023-12-05 14:22:03 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags: [installer]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
installer:
|
2023-12-17 14:42:55 +00:00
|
|
|
name: Build installer
|
2023-12-05 14:22:03 +00:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2023-12-05 14:49:54 +00:00
|
|
|
- name: Set up Go
|
|
|
|
uses: https://github.com/actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
go-version: '>=1.20.1'
|
2024-06-30 13:10:23 +01:00
|
|
|
- uses: cachix/install-nix-action@v27
|
2023-12-05 14:22:03 +00:00
|
|
|
with:
|
|
|
|
github_access_token: ${{ secrets.GH_PULL_TOKEN }}
|
|
|
|
extra_nix_config: |
|
|
|
|
# Make sure we're using sandbox
|
|
|
|
sandbox-fallback = false
|
|
|
|
|
2024-07-20 16:46:10 +01:00
|
|
|
extra-substituters = https://nix-cache.nul.ie
|
|
|
|
extra-trusted-public-keys = nix-cache.nul.ie-1:BzH5yMfF4HbzY1C977XzOxoPhEc9Zbu39ftPkUbH+m4=
|
2023-12-05 14:22:03 +00:00
|
|
|
|
2024-07-21 13:01:03 +01:00
|
|
|
- name: Set up vars
|
|
|
|
id: setup
|
|
|
|
run: |
|
|
|
|
echo "short_rev=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
|
2023-12-05 14:22:03 +00:00
|
|
|
- name: Build installer ISO
|
|
|
|
run: |
|
2023-12-17 14:42:55 +00:00
|
|
|
nix build .#nixfiles.config.nixos.systems.installer.configuration.config.my.buildAs.iso
|
2023-12-28 17:07:40 +00:00
|
|
|
ln -s "$(readlink result)"/iso/jackos-installer.iso \
|
|
|
|
jackos-installer-${{ steps.setup.outputs.short_rev }}.iso
|
2023-12-17 14:42:55 +00:00
|
|
|
- name: Build installer netboot archive
|
|
|
|
run: |
|
|
|
|
nix build .#nixfiles.config.nixos.systems.installer.configuration.config.my.buildAs.netbootArchive
|
|
|
|
ln -s "$(readlink result)" \
|
2024-06-24 00:08:55 +01:00
|
|
|
jackos-installer-netboot-${{ steps.setup.outputs.short_rev }}.tar.zst
|
2023-12-17 14:42:55 +00:00
|
|
|
|
|
|
|
- name: Create release
|
2023-12-05 14:49:54 +00:00
|
|
|
uses: https://gitea.com/actions/release-action@main
|
2023-12-05 14:22:03 +00:00
|
|
|
with:
|
2023-12-05 14:49:54 +00:00
|
|
|
title: Latest installer
|
2024-06-22 16:24:30 +01:00
|
|
|
api_key: '${{ secrets.RELEASE_TOKEN }}'
|
2023-12-05 14:49:54 +00:00
|
|
|
files: |
|
2023-12-28 17:07:40 +00:00
|
|
|
jackos-installer-${{ steps.setup.outputs.short_rev }}.iso
|
2024-06-24 00:08:55 +01:00
|
|
|
jackos-installer-netboot-${{ steps.setup.outputs.short_rev }}.tar.zst
|