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:
|
|
|
|
- nixos-22.11
|
|
|
|
- nixos-unstable
|
2021-06-10 08:10:06 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-07 11:18:19 +01:00
|
|
|
- uses: actions/checkout@v3
|
2023-05-29 12:57:04 +02:00
|
|
|
- uses: cachix/install-nix-action@v21
|
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
|
2022-12-16 15:54:13 +01:00
|
|
|
run: ./build-images.sh "${{matrix.tag}}"
|
2021-06-10 08:40:28 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|