This commit is contained in:
parent
b2391c4125
commit
ac5b15721a
2 changed files with 45 additions and 0 deletions
11
.forgejo/workflows/deploy.yaml
Normal file
11
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
on: [ push ]
|
||||
jobs:
|
||||
blog-pim:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: git.kun.is/home/forgejo-nix-action:687d16c49ea7936068bac64ec68c480a9d681962
|
||||
options: "-v /var/run/secrets/kubernetes.io/serviceaccount:/var/run/secrets/kubernetes.io/serviceaccount"
|
||||
steps:
|
||||
- name: Clone repository
|
||||
run: git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git src
|
||||
- run: ls -alh /var/run/secrets/kubernetes.io/serviceaccount
|
34
kubenix-modules/forgejo/runner-config.nix
Normal file
34
kubenix-modules/forgejo/runner-config.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
log.level = "info";
|
||||
host.workdir_parent = { };
|
||||
|
||||
runner = {
|
||||
file = ".runner";
|
||||
capacity = 1;
|
||||
env_file = ".env";
|
||||
timeout = "3h";
|
||||
insecure = false;
|
||||
fetch_timeout = "5s";
|
||||
fetch_interval = "2s";
|
||||
labels = [ ];
|
||||
envs = { };
|
||||
};
|
||||
|
||||
cache = {
|
||||
enabled = true;
|
||||
dir = "";
|
||||
host = "";
|
||||
port = 0;
|
||||
external_server = "";
|
||||
};
|
||||
|
||||
container = {
|
||||
network = "";
|
||||
privileged = false;
|
||||
options = { };
|
||||
workdir_parent = { };
|
||||
valid_volumes = [ ];
|
||||
docker_host = "";
|
||||
force_pull = false;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue