nixos-images/.github/workflows/build.yml

29 lines
721 B
YAML
Raw Normal View History

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:
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:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
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 }}