From 46c589dc27deb101b00d032df736caf559fa05bd Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 4 Oct 2024 17:29:48 +0200 Subject: Add auto rebuild --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml (limited to '.github') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c9a0103 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: "Rebuild system" + +on: + schedule: + - cron: "0 8 * * 0" + +jobs: + fetcher: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: "Install Nix ❄️" + uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + substituters = https://pn.cachix.org/ https://cache.nixos.org/ + trusted-public-keys = pn.cachix.org-1:KC0hqPVkcs7WUSv8xCkUNzrpDVKYh8TwZIqvhASvbJM= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + + - name: Cachix + uses: cachix/cachix-action@v15 + with: + name: pn + + - name: "Build" + id: fetcher + run: nix build .#nixosConfigurations.t14 -- cgit 1.4.1 From 4c52e693cbafa751de95b50ee1e1bcc1f2545070 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 4 Oct 2024 17:32:27 +0200 Subject: Update and rename main.yml to rebuild.yml --- .github/workflows/main.yml | 27 --------------------------- .github/workflows/rebuild.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/rebuild.yml (limited to '.github') diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index c9a0103..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: "Rebuild system" - -on: - schedule: - - cron: "0 8 * * 0" - -jobs: - fetcher: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: "Install Nix ❄️" - uses: cachix/install-nix-action@v18 - with: - extra_nix_config: | - substituters = https://pn.cachix.org/ https://cache.nixos.org/ - trusted-public-keys = pn.cachix.org-1:KC0hqPVkcs7WUSv8xCkUNzrpDVKYh8TwZIqvhASvbJM= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= - - - name: Cachix - uses: cachix/cachix-action@v15 - with: - name: pn - - - name: "Build" - id: fetcher - run: nix build .#nixosConfigurations.t14 diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml new file mode 100644 index 0000000..474abaf --- /dev/null +++ b/.github/workflows/rebuild.yml @@ -0,0 +1,28 @@ +name: "Rebuild system" + +on: + workflow_dispatch: + schedule: + - cron: "0 8 * * 0" + +jobs: + fetcher: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: "Install Nix ❄️" + uses: cachix/install-nix-action@v18 + with: + extra_nix_config: | + substituters = https://pn.cachix.org/ https://cache.nixos.org/ + trusted-public-keys = pn.cachix.org-1:KC0hqPVkcs7WUSv8xCkUNzrpDVKYh8TwZIqvhASvbJM= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + + - name: Cachix + uses: cachix/cachix-action@v15 + with: + name: pn + + - name: "Build" + id: fetcher + run: nix build .#nixosConfigurations.t14 -- cgit 1.4.1 From 5cbc2e88a7cf681876566c81025d3eb6975bda07 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 4 Oct 2024 17:39:00 +0200 Subject: Update rebuild.yml --- .github/workflows/rebuild.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to '.github') diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml index 474abaf..196c602 100644 --- a/.github/workflows/rebuild.yml +++ b/.github/workflows/rebuild.yml @@ -1,6 +1,7 @@ name: "Rebuild system" on: + push: workflow_dispatch: schedule: - cron: "0 8 * * 0" @@ -13,11 +14,7 @@ jobs: - name: "Install Nix ❄️" uses: cachix/install-nix-action@v18 - with: - extra_nix_config: | - substituters = https://pn.cachix.org/ https://cache.nixos.org/ - trusted-public-keys = pn.cachix.org-1:KC0hqPVkcs7WUSv8xCkUNzrpDVKYh8TwZIqvhASvbJM= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= - + - name: Cachix uses: cachix/cachix-action@v15 with: -- cgit 1.4.1 From e97d1eccc1bab975c3fd8dab8ff840c499a4e8c9 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 4 Oct 2024 17:43:53 +0200 Subject: Update rebuild.yml --- .github/workflows/rebuild.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml index 196c602..433e1ec 100644 --- a/.github/workflows/rebuild.yml +++ b/.github/workflows/rebuild.yml @@ -10,10 +10,10 @@ jobs: fetcher: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: "Install Nix ❄️" - uses: cachix/install-nix-action@v18 + uses: cachix/install-nix-action@v30 - name: Cachix uses: cachix/cachix-action@v15 -- cgit 1.4.1 From cbccdb54716054893393deb55fca7a9964ac2f90 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 4 Oct 2024 17:48:25 +0200 Subject: Fix config path --- .github/workflows/rebuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml index 433e1ec..301b206 100644 --- a/.github/workflows/rebuild.yml +++ b/.github/workflows/rebuild.yml @@ -22,4 +22,4 @@ jobs: - name: "Build" id: fetcher - run: nix build .#nixosConfigurations.t14 + run: nix build .#nixosConfigurations.t14.config.system.build.toplevel -- cgit 1.4.1 From f391b4f4fe19651c3f66101b66f9794895fe72cd Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Fri, 4 Oct 2024 18:01:49 +0200 Subject: Add secrets --- .github/workflows/rebuild.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/workflows/rebuild.yml b/.github/workflows/rebuild.yml index 301b206..2ccd017 100644 --- a/.github/workflows/rebuild.yml +++ b/.github/workflows/rebuild.yml @@ -19,6 +19,7 @@ jobs: uses: cachix/cachix-action@v15 with: name: pn + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - name: "Build" id: fetcher -- cgit 1.4.1