vps1: enable forgejo actions and enable runner

This commit is contained in:
Lgmrszd 2024-10-10 01:11:30 +04:00
parent dc37f248f7
commit 85877ebe81
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE

View file

@ -91,7 +91,8 @@ in
};
actions = {
ENABLED = false;
ENABLED = true;
DEFAULT_ACTIONS_URL = "https://code.forgejo.org";
};
mailer = {
ENABLED = true;
@ -118,6 +119,27 @@ in
};
};
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.default = {
enable = true;
name = "mainrunner";
url = "https://${domain}";
# Obtaining the path to the runner token file may differ
tokenFile = /run/runnersecret;
labels = [
"ubuntu-latest:docker://node:16-bullseye"
"ubuntu-22.04:docker://node:16-bullseye"
#"ubuntu-20.04:docker://node:16-bullseye"
#"ubuntu-18.04:docker://node:16-buster"
## optionally provide native execution on the host:
"native:host"
];
};
};
# TODO move to separate
virtualisation.docker.enable = true;
sops.secrets."forgejo/email_password" = sops_opts;
sops.secrets."forgejo/db_password" = sops_opts;