Compare commits
2 Commits
cda4de62b6
...
27862a3be1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27862a3be1 | ||
|
|
41e5077f7d |
@ -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
|
||||
|
||||
@ -9,4 +9,21 @@ in{
|
||||
proto = "tcp";
|
||||
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
|
||||
runner_config = pkgs.writeTextFile {
|
||||
name = "config.yml";
|
||||
text = ''
|
||||
container:
|
||||
network: "host"
|
||||
'';
|
||||
};
|
||||
in {
|
||||
gitea-runner = {
|
||||
image = "gitea/act_runner@sha256:8477d5b61b655caad4449888bae39f1f34bebd27db56cb15a62dccb3dcf3a944";
|
||||
autoStart = true;
|
||||
# virtualisation.oci-containers.containers = let
|
||||
# runner_config = pkgs.writeTextFile {
|
||||
# name = "config.yml";
|
||||
# text = ''
|
||||
# container:
|
||||
# network: "host"
|
||||
# '';
|
||||
# };
|
||||
# in {
|
||||
# gitea-runner = {
|
||||
# image = "gitea/act_runner@sha256:8477d5b61b655caad4449888bae39f1f34bebd27db56cb15a62dccb3dcf3a944";
|
||||
# autoStart = true;
|
||||
|
||||
# capabilities = {
|
||||
# NET_RAW = true;
|
||||
# };
|
||||
# # capabilities = {
|
||||
# # NET_RAW = true;
|
||||
# # };
|
||||
|
||||
environment = {
|
||||
GITEA_INSTANCE_URL = nodes.sin.config.services.gitea.settings.server.ROOT_URL;
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
|
||||
CONFIG_FILE = "/config.yml";
|
||||
};
|
||||
volumes = [
|
||||
"/var/run/docker.sock:/var/run/docker.sock"
|
||||
"${runner_config}:/config.yml:ro"
|
||||
];
|
||||
};
|
||||
};
|
||||
# environment = {
|
||||
# GITEA_INSTANCE_URL = nodes.sin.config.services.gitea.settings.server.ROOT_URL;
|
||||
# GITEA_RUNNER_REGISTRATION_TOKEN = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
|
||||
# CONFIG_FILE = "/config.yml";
|
||||
# };
|
||||
# volumes = [
|
||||
# "/var/run/docker.sock:/var/run/docker.sock"
|
||||
# "${runner_config}:/config.yml:ro"
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user