Skip to content

Commit

Permalink
setup github runner for this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
chfanghr committed Aug 23, 2024
1 parent c8bcdbc commit 279277a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nix-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
nix-matrix:
runs-on: ubuntu-latest
runs-on: [self-hosted]
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand Down
1 change: 1 addition & 0 deletions hosts/Persephone/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
imports = [
./boot.nix
./fah.nix
./github-runners.nix
./migration.nix
./minidlna.nix
./networking.nix
Expand Down
8 changes: 8 additions & 0 deletions hosts/Persephone/github-runners.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{config, ...}: {
services.github-runners.chfanghr-dotfiles-v2 = {
tokenFile = config.age.secrets."github-runner-token-chfanghr-dotfiles-v2".path;
url = "https://github.com/chfanghr/dotfiles-v2";
};

age.secrets."github-runner-token-chfanghr-dotfiles-v2".file = ../../secrets/github-runner-token-chfanghr-dotfiles-v2.age;
}
7 changes: 7 additions & 0 deletions secrets/github-runner-token-chfanghr-dotfiles-v2.age
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
age-encryption.org/v1
-> ssh-ed25519 lk+IKg yLlInRMAd1rpsESoegJ6sjSnENecmu/Ij9BD46lURAo
3PytzcFPJjeavcLeaLeeB7yKrdseNgupU3/z4FCRJWQ
-> ssh-ed25519 hmI59g Juh/ziS+CCyr2p96sGXr5tqnmb2ypHRklwDVwffYfQI
lqMRDn3wSwADQCXFTYnFTmk5Qojr6z67Fwe/ULQXYPs
--- gXiHZHesLq5iltGMRW6BjVsR0VylFxz1mrioiYITmsM
��͚MCٍ�� ���v4o^t����t��V�v��X�-�q�;���)���V�g{5eo5��e$����
1 change: 1 addition & 0 deletions secrets/secrets.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ in {
"artemis-cifs-credential.age".publicKeys = [master persephone];
"yotsuba.key.age".publicKeys = [master persephone];
"oizys-pap-password.age".publicKeys = [master oizys];
"github-runner-token-chfanghr-dotfiles-v2.age".publicKeys = [master persephone];
}

0 comments on commit 279277a

Please sign in to comment.