From 27862a3be19e84774178c64fda13056de7b83ae3 Mon Sep 17 00:00:00 2001 From: shobu Date: Wed, 12 Nov 2025 05:19:27 +0100 Subject: [PATCH] test --- .gitea/workflows/deploy.yml | 8 ++------ modules/gitea/thea/default.nix | 14 +++++++++++--- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1b9abf9..6968347 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -7,11 +7,7 @@ on: jobs: build: name: build hive configuration - runs-on: ubuntu-22.04 + runs-on: nix-latest steps: - uses: actions/checkout@v5 - - uses: cachix/install-nix-action@v31 - with: - install_url: https://releases.nixos.org/nix/nix-2.20.0/install - - uses: https://github.com/nicknovitski/nix-develop@v1 - - run: colmena apply + - run: nix run nixpkgs#colmena apply diff --git a/modules/gitea/thea/default.nix b/modules/gitea/thea/default.nix index bd6996b..21bda89 100644 --- a/modules/gitea/thea/default.nix +++ b/modules/gitea/thea/default.nix @@ -2,7 +2,7 @@ sin-address = "192.168.1.14"; in{ imports = [ - # ./virtualisation.nix + ./virtualisation.nix ]; networking.nat.forwardPorts = [{ sourcePort = nodes.sin.config.services.gitea.settings.server.SSH_PORT; @@ -11,11 +11,19 @@ in{ }]; services.gitea-actions-runner.instances = { - gitea.shobu.fr-runner = { + "gitea.shobu.fr-runner" = { enable = true; name = "gitea.shobu.fr-runner"; - url = nodes.sin.gitea.settings.server.ROOT_URL; + url = nodes.sin.config.services.gitea.settings.server.ROOT_URL; token = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW"; + labels = [ + "debian-latest:docker://debian:latest" + "ubuntu-latest:docker://ubuntu:latest" + "nix-latest:docker://nixos/nix:latest" + "debian-latest:docker://node:18-bullseye" + "ubuntu-latest:docker://node:18-bullseye" + #"native:host" + ]; }; }; }