From 224cd28112e92149914d92d053df6b49ed3876b1 Mon Sep 17 00:00:00 2001 From: Victor Date: Wed, 7 Jun 2023 14:03:42 +0200 Subject: [PATCH] add docker runner; --- .forgejo/workflows/test.yml | 12 ++++++++++++ flake.nix | 2 +- nixos/hosts/olympus/ci/configuration.nix | 9 +++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..8dd9abe --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,12 @@ +name: Testing + +on: [push] + +jobs: + lint: + runs-on: docker + steps: + - uses: actions/checkout@v3 + - run: ls -l + - run: uname -a + diff --git a/flake.nix b/flake.nix index 03c7b99..0b658d3 100644 --- a/flake.nix +++ b/flake.nix @@ -74,7 +74,7 @@ apply-local = pkgs.writeShellScriptBin "apply-local" '' "${ colmena.packages.${system}.colmena - }"/bin/colmena apply-local --sudo --keep-result $@ + }"/bin/colmena apply-local --sudo $@ ''; fast-repl = pkgs.writeShellScriptBin "fast-repl" '' diff --git a/nixos/hosts/olympus/ci/configuration.nix b/nixos/hosts/olympus/ci/configuration.nix index d316189..f0c7df5 100644 --- a/nixos/hosts/olympus/ci/configuration.nix +++ b/nixos/hosts/olympus/ci/configuration.nix @@ -40,6 +40,15 @@ in { }; services.gitea-actions-runner.instances = { + runner_1 = { + name = "runner_1"; + enable = true; + labels = [ + "docker:docker://node:16-bullseye" + ]; + url = "https://git.0x76.dev"; + tokenFile = "${vs.gitea_runner}/token_runner_1"; + }; nix-native = { enable = true; name = "nix-native";