Compare commits
No commits in common. "27862a3be19e84774178c64fda13056de7b83ae3" and "cda4de62b6ceaea943bffdda3a2547fa1fceb5ae" have entirely different histories.
27862a3be1
...
cda4de62b6
@ -7,7 +7,11 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: build hive configuration
|
name: build hive configuration
|
||||||
runs-on: nix-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- run: nix run nixpkgs#colmena apply
|
- 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
|
||||||
|
|||||||
@ -9,21 +9,4 @@ in{
|
|||||||
proto = "tcp";
|
proto = "tcp";
|
||||||
destination = "${sin-address}:22";
|
destination = "${sin-address}:22";
|
||||||
}];
|
}];
|
||||||
|
|
||||||
services.gitea-actions-runner.instances = {
|
|
||||||
"gitea.shobu.fr-runner" = {
|
|
||||||
enable = true;
|
|
||||||
name = "gitea.shobu.fr-runner";
|
|
||||||
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"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,32 +15,32 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# virtualisation.oci-containers.containers = let
|
virtualisation.oci-containers.containers = let
|
||||||
# runner_config = pkgs.writeTextFile {
|
runner_config = pkgs.writeTextFile {
|
||||||
# name = "config.yml";
|
name = "config.yml";
|
||||||
# text = ''
|
text = ''
|
||||||
# container:
|
container:
|
||||||
# network: "host"
|
network: "host"
|
||||||
# '';
|
'';
|
||||||
# };
|
};
|
||||||
# in {
|
in {
|
||||||
# gitea-runner = {
|
gitea-runner = {
|
||||||
# image = "gitea/act_runner@sha256:8477d5b61b655caad4449888bae39f1f34bebd27db56cb15a62dccb3dcf3a944";
|
image = "gitea/act_runner@sha256:8477d5b61b655caad4449888bae39f1f34bebd27db56cb15a62dccb3dcf3a944";
|
||||||
# autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
# # capabilities = {
|
# capabilities = {
|
||||||
# # NET_RAW = true;
|
# NET_RAW = true;
|
||||||
# # };
|
# };
|
||||||
|
|
||||||
# environment = {
|
environment = {
|
||||||
# GITEA_INSTANCE_URL = nodes.sin.config.services.gitea.settings.server.ROOT_URL;
|
GITEA_INSTANCE_URL = nodes.sin.config.services.gitea.settings.server.ROOT_URL;
|
||||||
# GITEA_RUNNER_REGISTRATION_TOKEN = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
|
GITEA_RUNNER_REGISTRATION_TOKEN = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
|
||||||
# CONFIG_FILE = "/config.yml";
|
CONFIG_FILE = "/config.yml";
|
||||||
# };
|
};
|
||||||
# volumes = [
|
volumes = [
|
||||||
# "/var/run/docker.sock:/var/run/docker.sock"
|
"/var/run/docker.sock:/var/run/docker.sock"
|
||||||
# "${runner_config}:/config.yml:ro"
|
"${runner_config}:/config.yml:ro"
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user