feat(github_runner): target canopy-homelab organization with RUNNER_SCOPE=org
- github_runner/docker-compose.yml: configure primary runner for RUNNER_SCOPE=org, ORG_NAME=canopy-homelab, APP_LOGIN=canopy-homelab, and state under ../../var/lib/homelab/github_runner/canopy-homelab - github_runner/.env-example: keep .env strictly scoped to shared GitHub App ID, base64 key, and labels
This commit is contained in:
1 parent
359ee51586
commit
954cbc1c7f
2 files changed
+5
-22
No files matched your search
@@ -3,5 +3,3 @@ GITHUB_RUNNER_APP_ID=replace-with-github-app-id
|
|||||||
# Single-line base64-encoded GitHub App PEM private key: base64 -w0 < private-key.pem
|
# Single-line base64-encoded GitHub App PEM private key: base64 -w0 < private-key.pem
|
||||||
GITHUB_RUNNER_APP_PRIVATE_KEY_B64=replace-with-base64-encoded-pem
|
GITHUB_RUNNER_APP_PRIVATE_KEY_B64=replace-with-base64-encoded-pem
|
||||||
GITHUB_RUNNER_LABELS=self-hosted,linux,x64,nix
|
GITHUB_RUNNER_LABELS=self-hosted,linux,x64,nix
|
||||||
# Target personal repo when RUNNER_SCOPE=repo (org runners declare ORG_NAME/APP_LOGIN in docker-compose.yml)
|
|
||||||
GITHUB_RUNNER_REPO_URL=https://github.com/kiskaadee/replace-with-repo
|
|
||||||
@@ -17,28 +17,13 @@ services:
|
|||||||
container_name: ${CONTAINER_NAME:-github_runner}
|
container_name: ${CONTAINER_NAME:-github_runner}
|
||||||
environment:
|
environment:
|
||||||
<<: *runner-env
|
<<: *runner-env
|
||||||
RUNNER_NAME: ${GITHUB_RUNNER_NAME:-homelab-github-runner}
|
RUNNER_NAME: ${GITHUB_RUNNER_NAME:-homelab-runner-canopy}
|
||||||
RUNNER_SCOPE: ${GITHUB_RUNNER_SCOPE:-repo}
|
RUNNER_SCOPE: org
|
||||||
APP_LOGIN: ${GITHUB_RUNNER_APP_LOGIN:-kiskaadee}
|
APP_LOGIN: canopy-homelab
|
||||||
REPO_URL: ${GITHUB_RUNNER_REPO_URL:-}
|
ORG_NAME: canopy-homelab
|
||||||
ORG_NAME: ${GITHUB_RUNNER_ORG_NAME:-}
|
|
||||||
volumes:
|
volumes:
|
||||||
- ../../var/lib/homelab/github_runner:/data
|
- ../../var/lib/homelab/github_runner/canopy-homelab:/data
|
||||||
- nix-store:/nix
|
- nix-store:/nix
|
||||||
|
|
||||||
# To add an organization runner later (reusing the same built image, App ID/key, and nix-store):
|
|
||||||
# github_runner_canopy:
|
|
||||||
# <<: *runner-common
|
|
||||||
# container_name: github_runner_canopy
|
|
||||||
# environment:
|
|
||||||
# <<: *runner-env
|
|
||||||
# RUNNER_NAME: homelab-runner-canopy
|
|
||||||
# RUNNER_SCOPE: org
|
|
||||||
# APP_LOGIN: canopy
|
|
||||||
# ORG_NAME: canopy
|
|
||||||
# volumes:
|
|
||||||
# - ../../var/lib/homelab/github_runner/canopy:/data
|
|
||||||
# - nix-store:/nix
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
nix-store: {}
|
nix-store: {}
|
||||||
Reference in new issue
Block a user