nixos-images/.github/workflows/build.yml
2022-12-19 14:01:11 +01:00

25 lines
575 B
YAML

name: "Build"
on:
repository_dispatch:
workflow_dispatch:
push:
branches:
- main
jobs:
images:
strategy:
fail-fast: false
matrix:
tag:
- nixos-22.11
- nixos-unstable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz
- name: Build image
run: ./build-images.sh "${{matrix.tag}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}