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]
|
on: [push, workflow_dispatch]
|
||||||
jobs:
|
jobs:
|
||||||
update-repo:
|
update-repo:
|
||||||
runs-on: [home-server]
|
runs-on: home-server
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repo
|
- name: checkout repo
|
||||||
working-directory: /home/gitea-runner/infrastructure
|
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
|
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
||||||
fi
|
fi
|
||||||
update-infrastructure:
|
update-infrastructure:
|
||||||
runs-on: [home-server]
|
runs-on: home-server
|
||||||
needs: update-repo
|
needs: update-repo
|
||||||
steps:
|
steps:
|
||||||
- name: update home server containers
|
- name: update home server containers
|
||||||
|
|||||||
@@ -298,6 +298,8 @@
|
|||||||
"home-server:host"
|
"home-server:host"
|
||||||
];
|
];
|
||||||
hostPackages = with pkgs; [
|
hostPackages = with pkgs; [
|
||||||
|
bashNonInteractive
|
||||||
|
coreutils
|
||||||
docker
|
docker
|
||||||
git
|
git
|
||||||
git-secret
|
git-secret
|
||||||
@@ -315,9 +317,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
systemd.services.gitea-runner-infrastructure.environment = {
|
||||||
|
RUNNER_SHELL = "${pkgs.bashNonInteractive}/bin/bash";
|
||||||
|
};
|
||||||
systemd.services.gitea-runner-infrastructure.serviceConfig = {
|
systemd.services.gitea-runner-infrastructure.serviceConfig = {
|
||||||
|
|
||||||
ReadWritePaths = [
|
ReadWritePaths = [
|
||||||
"/data/cloudflare/"
|
"/data/cloudflare/"
|
||||||
"/data/runner/infrastructure"
|
"/data/runner/infrastructure"
|
||||||
@@ -345,18 +348,8 @@
|
|||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
kubernetes-helm
|
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;
|
networking.firewall.enable = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user