Add gitea actions runner

This commit is contained in:
2023-09-13 00:25:15 +01:00
parent 2851c593da
commit 9097d40703
3 changed files with 24 additions and 1 deletions

View File

@@ -8,6 +8,25 @@
file = ../../secrets/sendmail_email_key_gitea.age;
owner = "gitea";
group = "gitea";
};
gitea_actions_runner_token = {
file = ../../secrets/gitea_actions_runner_token.age;
};
};
services.gitea-actions-runner = {
instances = {
primary = {
enable = true;
name = "actions-runner";
url = config.services.gitea.settings.server.ROOT_URL;
tokenFile = config.age.secrets.gitea_actions_runner_token.path;
labels = [
"native:host"
"ubuntu-latest:docker://node:16-bullseye"
];
};
};
};
@@ -40,12 +59,15 @@
mailer = {
ENABLED = true;
FROM = "gitea@broccoli.town";
MAILER_TYPE = "smtp";
PROTOCOL = "smtp";
SMTP_ADDR = "smtp.sendgrid.net";
SMTP_PORT = 465;
IS_TLS_ENABLED = true;
USER = "apikey";
};
actions = {
ENABLED = true;
};
};
mailerPasswordFile = config.age.secrets.sendmail_email_key_gitea.path;
};