add caching and flake-checker to repo
All checks were successful
/ Build Nix targets (push) Successful in 30s
All checks were successful
/ Build Nix targets (push) Successful in 30s
This commit is contained in:
parent
5b40e59f4b
commit
733a125f77
@ -1,13 +1,14 @@
|
|||||||
on: [push]
|
on: [push]
|
||||||
name: Lint Nix code
|
|
||||||
jobs:
|
jobs:
|
||||||
statix:
|
build:
|
||||||
name: Lint code
|
name: Build Nix targets
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.1.0
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v18
|
- uses: http://github.com/cachix/install-nix-action@v18
|
||||||
- uses: cachix/cachix-action@v12
|
- uses: http://github.com/cachix/cachix-action@v12
|
||||||
with:
|
with:
|
||||||
name: statix
|
name: statix
|
||||||
- uses: https://github.com/jocelynthode/statix-action@master
|
- name: Check Nix flake inputs
|
||||||
|
uses: http://github.com/DeterminateSystems/flake-checker-action@main
|
||||||
|
|||||||
@ -1,15 +1,10 @@
|
|||||||
{nodes, ...}: {
|
{nodes, pkgs, ...}: {
|
||||||
systemd.sockets.podman.socketConfig.Symlinks = [
|
systemd.sockets.podman.socketConfig.Symlinks = [
|
||||||
"/run/docker.sock"
|
"/run/docker.sock"
|
||||||
];
|
];
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
containers = {
|
containers = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# storage.settings = {
|
|
||||||
# storage = {
|
|
||||||
# driver = "btrfs";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
podman = {
|
podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -20,16 +15,31 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers = let
|
||||||
|
runner_config = pkgs.writeTextFile {
|
||||||
|
name = "config.yml";
|
||||||
|
text = ''
|
||||||
|
container:
|
||||||
|
network: "bridge"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
in {
|
||||||
gitea-runner = {
|
gitea-runner = {
|
||||||
image = "gitea/act_runner@sha256:8477d5b61b655caad4449888bae39f1f34bebd27db56cb15a62dccb3dcf3a944";
|
image = "gitea/act_runner@sha256:8477d5b61b655caad4449888bae39f1f34bebd27db56cb15a62dccb3dcf3a944";
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
|
||||||
|
# capabilities = {
|
||||||
|
# NET_RAW = true;
|
||||||
|
# };
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
GITEA_INSTANCE_URL = nodes.sin.config.services.gitea.settings.server.ROOT_URL;
|
GITEA_INSTANCE_URL = nodes.sin.config.services.gitea.settings.server.ROOT_URL;
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
|
GITEA_RUNNER_REGISTRATION_TOKEN = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
|
||||||
|
CONFIG_FILE = "/config.yml";
|
||||||
};
|
};
|
||||||
volumes = [
|
volumes = [
|
||||||
"/var/run/docker.sock:/var/run/docker.sock"
|
"/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
"${runner_config}:/config.yml:ro"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user