From aa4a386d5d7322588cb45f2c2cd5f4a275286422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 16 Dec 2022 15:34:03 +0100 Subject: [PATCH 1/3] auto update flake lock --- .github/workflows/update-flake-lock.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/update-flake-lock.yml diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml new file mode 100644 index 0000000..c3487ce --- /dev/null +++ b/.github/workflows/update-flake-lock.yml @@ -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 }} From 47d1d6f9647f2563bb47fa6ddc682deb7cc4b163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 16 Dec 2022 15:54:13 +0100 Subject: [PATCH 2/3] also build 22.11 in ci again --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4fd236..f565e7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} From b47fd46e10ee7b9be38314cff01e2200fa72375f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 16 Dec 2022 15:57:50 +0100 Subject: [PATCH 3/3] mergify: add rules --- .mergify.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..497b2bf --- /dev/null +++ b/.mergify.yml @@ -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: {}