Compare commits
5 Commits
e7c403e35c
...
565572c869
| Author | SHA1 | Date | |
|---|---|---|---|
| 565572c869 | |||
| dcd8a8590d | |||
| 7575c9c974 | |||
| 90df48ccee | |||
| 6b516697e2 |
@@ -2,7 +2,7 @@ name: Apply Kuberentes Configs
|
||||
on: [push, workflow_dispatch]
|
||||
jobs:
|
||||
update-repo:
|
||||
runs-on: [home-server]
|
||||
runs-on: home-server
|
||||
steps:
|
||||
- name: checkout repo
|
||||
working-directory: /home/gitea-runner/infrastructure
|
||||
@@ -16,7 +16,7 @@ jobs:
|
||||
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
||||
fi
|
||||
update-infrastructure:
|
||||
runs-on: [home-server]
|
||||
runs-on: home-server
|
||||
needs: update-repo
|
||||
steps:
|
||||
- name: update home server containers
|
||||
|
||||
@@ -298,6 +298,8 @@
|
||||
"home-server:host"
|
||||
];
|
||||
hostPackages = with pkgs; [
|
||||
bashNonInteractive
|
||||
coreutils
|
||||
docker
|
||||
git
|
||||
git-secret
|
||||
@@ -315,9 +317,10 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.gitea-runner-infrastructure.environment = {
|
||||
RUNNER_SHELL = "${pkgs.bashNonInteractive}/bin/bash";
|
||||
};
|
||||
systemd.services.gitea-runner-infrastructure.serviceConfig = {
|
||||
|
||||
ReadWritePaths = [
|
||||
"/data/cloudflare/"
|
||||
"/data/runner/infrastructure"
|
||||
@@ -345,18 +348,8 @@
|
||||
packages = with pkgs; [
|
||||
kubernetes-helm
|
||||
];
|
||||
shell = pkgs.bashInteractive;
|
||||
shell = pkgs.bashNonInteractive;
|
||||
};
|
||||
# users.users.github = {
|
||||
# isNormalUser = true;
|
||||
# description = "github";
|
||||
# extraGroups = [ "docker" ];
|
||||
# shell = pkgs.fish;
|
||||
# packages = with pkgs; [
|
||||
# kubernetes-helm
|
||||
# ];
|
||||
# };
|
||||
|
||||
|
||||
|
||||
networking.firewall.enable = false;
|
||||
|
||||
Reference in New Issue
Block a user