Merge pull request #41 from nix-community/ci

Ci
This commit is contained in:
Jörg Thalheim 2022-12-16 15:00:13 +00:00 committed by GitHub
commit bde606ad22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 1 deletions

View file

@ -6,6 +6,12 @@ on:
- cron: '51 2 * * 0'
jobs:
images:
strategy:
fail-fast: false
matrix:
tag:
- nixos-22.11
- nixos-unstable
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -13,6 +19,6 @@ jobs:
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs-unstable.tar.gz
- name: Build image
run: ./build-images.sh
run: ./build-images.sh "${{matrix.tag}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

18
.github/workflows/update-flake-lock.yml vendored Normal file
View file

@ -0,0 +1,18 @@
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * 1,4' # Run twice a week
jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v18
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v14
with:
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}

14
.mergify.yml Normal file
View file

@ -0,0 +1,14 @@
pull_request_rules:
- name: automatic merge on CI success
conditions:
- check-success=Evaluate flake.nix
- check-success=package kexec-installer-nixos-2211 [x86_64-linux]
- check-success=package kexec-installer-nixos-unstable [x86_64-linux]
- check-success=package netboot-nixos-unstable [x86_64-linux]
- check-success=check kexec-installer-unstable [x86_64-linux]
- check-success=package netboot-nixos-nixos-2211 [x86_64-linux]
- author=nix-eval-jobs-bot
actions:
merge:
method: merge
delete_head_branch: {}