2021-06-10 09:32:56 +02:00
|
|
|
name: "Build"
|
2021-06-10 08:10:06 +02:00
|
|
|
on:
|
|
|
|
repository_dispatch:
|
|
|
|
workflow_dispatch:
|
2022-12-19 14:01:03 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2021-06-10 08:10:06 +02:00
|
|
|
jobs:
|
|
|
|
images:
|
2022-12-16 15:54:13 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
tag:
|
2023-12-09 17:36:05 +01:00
|
|
|
- nixos-23.11
|
2022-12-16 15:54:13 +01:00
|
|
|
- nixos-unstable
|
2023-08-04 21:50:03 +02:00
|
|
|
os:
|
2023-08-04 22:47:51 +02:00
|
|
|
- nscloud-ubuntu-22.04-arm64-4x16
|
2023-08-04 21:50:03 +02:00
|
|
|
- ubuntu-latest
|
|
|
|
runs-on: ${{ matrix.os }}
|
2021-06-10 08:10:06 +02:00
|
|
|
steps:
|
2023-09-11 12:45:27 +02:00
|
|
|
- uses: actions/checkout@v4
|
2024-03-11 11:39:16 +01:00
|
|
|
- uses: cachix/install-nix-action@v26
|
2021-06-10 08:10:06 +02:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz
|
|
|
|
- name: Build image
|
2023-08-04 21:50:03 +02:00
|
|
|
run: ./build-images.sh "${{ matrix.tag }}" "$(nix eval --raw --impure --expr builtins.currentSystem)"
|
2021-06-10 08:40:28 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|