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-06-11 08:54:27 +02:00
|
|
|
- nixos-23.05
|
2022-12-16 15:54:13 +01:00
|
|
|
- nixos-unstable
|
2023-08-04 21:50:03 +02:00
|
|
|
os:
|
|
|
|
- nscloud-ubuntu-22.04-arm64-4x16
|
|
|
|
- ubuntu-latest
|
|
|
|
runs-on: ${{ matrix.os }}
|
2021-06-10 08:10:06 +02:00
|
|
|
steps:
|
2022-03-07 11:18:19 +01:00
|
|
|
- uses: actions/checkout@v3
|
2023-06-19 12:56:56 +02:00
|
|
|
- uses: cachix/install-nix-action@v22
|
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 }}
|