Compare commits
2 Commits
0cc5dcef92
...
961d5f430f
| Author | SHA1 | Date | |
|---|---|---|---|
|
961d5f430f
|
|||
|
674e945d7e
|
@ -3,9 +3,12 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
virtualisation.oci-containers.containers.gitea-runner = {
|
runnerVersion = "0.2.12";
|
||||||
image = "gitea/act_runner:latest"; # NOTE: vegardit has other runner images
|
in {
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
gitea-runner = {
|
||||||
|
image = "gitea/act_runner:${runnerVersion}"; # NOTE: vegardit has other runner images
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = {
|
||||||
@ -29,14 +32,14 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
# NOTE: gitlab.local.chriphost.de doesn't work, because it gets resolved to 192.168.86.25:443, which is nginx
|
# gitlab.local.chriphost.de doesn't work, because it gets resolved to 192.168.86.25:443, which is nginx
|
||||||
GITEA_INSTANCE_URL = "http://192.168.86.25:3000";
|
GITEA_INSTANCE_URL = "http://192.168.86.25:3000";
|
||||||
GITEA_RUNNER_NAME = "servenix";
|
GITEA_RUNNER_NAME = "servenix";
|
||||||
|
|
||||||
# Can be generated from inside the container using act_runner generate-config > /config/config.yaml
|
# Can be generated from inside the container using act_runner generate-config > /config/config.yaml
|
||||||
CONFIG_FILE = "/config/config.yaml";
|
CONFIG_FILE = "/config/config.yaml";
|
||||||
|
|
||||||
# NOTE: This token is invalid, when re-registering is needed it has to be refreshed
|
# This token is invalid, when re-registering is needed it has to be refreshed
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN = "Mq6wr0dPthqDij3iaryP8s5VYZA5kPfOQbHA6wm6";
|
GITEA_RUNNER_REGISTRATION_TOKEN = "Mq6wr0dPthqDij3iaryP8s5VYZA5kPfOQbHA6wm6";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -45,4 +48,5 @@
|
|||||||
"--net=behind-nginx"
|
"--net=behind-nginx"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,9 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
giteaVersion = "1.24.2";
|
||||||
|
in {
|
||||||
users = {
|
users = {
|
||||||
groups.git = {};
|
groups.git = {};
|
||||||
|
|
||||||
@ -19,7 +21,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.gitea-db = {
|
virtualisation.oci-containers.containers = {
|
||||||
|
gitea-db = {
|
||||||
image = "postgres:14";
|
image = "postgres:14";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
@ -51,8 +54,8 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers.gitea = {
|
gitea = {
|
||||||
image = "gitea/gitea:latest";
|
image = "gitea/gitea:${giteaVersion}";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
login = {
|
login = {
|
||||||
@ -98,4 +101,5 @@
|
|||||||
"--net=behind-nginx"
|
"--net=behind-nginx"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user