From 9f6983c90a9f4cc4fc52680a558e30596edba9d1 Mon Sep 17 00:00:00 2001 From: Matthew McKinnon Date: Thu, 11 Sep 2025 20:18:31 +1000 Subject: [PATCH] chore: add debian-images var file for gitea runners --- group_vars/docker-images.yml | 3 +++ tasks/gitea-runner-homelab.yml | 5 ++++- tasks/gitea.yml | 5 ++++- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 group_vars/docker-images.yml diff --git a/group_vars/docker-images.yml b/group_vars/docker-images.yml new file mode 100644 index 0000000..6f4c229 --- /dev/null +++ b/group_vars/docker-images.yml @@ -0,0 +1,3 @@ +alpine_latest_image: "alpine:latest" +ubuntu_latest_image: "node:22-trixie" +debian_latest_image: "git.comprofix.com/mmckinnon/debian-latest:2025.08.31-093853" diff --git a/tasks/gitea-runner-homelab.yml b/tasks/gitea-runner-homelab.yml index 79c6e85..275b40d 100644 --- a/tasks/gitea-runner-homelab.yml +++ b/tasks/gitea-runner-homelab.yml @@ -39,4 +39,7 @@ GITEA_INSTANCE_URL: "https://git.comprofix.com" GITEA_RUNNER_REGISTRATION_TOKEN: "{{ GITEA_RUNNER_TOKEN }}" GITEA_RUNNER_NAME: "homelab-runner" - GITEA_RUNNER_LABELS: "alpine-latest:docker://alpine:latest,ubuntu-latest:docker://node:22-trixie,homelab-latest:docker://git.comprofix.com/mmckinnon/debian-latest:2025.08.31-093853" + GITEA_RUNNER_LABELS: > + alpine-latest:docker://{{ alpine_latest_image }}, + ubuntu-latest:docker://{{ ubuntu_latest_image }}, + homelab-latest:docker://{{ debian_latest_image }} diff --git a/tasks/gitea.yml b/tasks/gitea.yml index 1ea9cf1..d6e0abb 100644 --- a/tasks/gitea.yml +++ b/tasks/gitea.yml @@ -94,7 +94,10 @@ GITEA_INSTANCE_URL: "https://git.comprofix.com" GITEA_RUNNER_REGISTRATION_TOKEN: "{{ GITEA_RUNNER_TOKEN }}" GITEA_RUNNER_NAME: "gitea-runner" - GITEA_RUNNER_LABELS: "alpine-latest:docker://alpine:latest,ubuntu-latest:docker://node:22-trixie,vps-latest:docker://git.comprofix.com/mmckinnon/debian-latest:2025.08.31-093853" + GITEA_RUNNER_LABELS: > + alpine-latest:docker://{{ alpine_latest_image }}, + ubuntu-latest:docker://{{ ubuntu_latest_image }}, + vps-latest:docker://{{ debian_latest_image }} - name: Create directories file: