From bd174be094975ff6e53dd79e1f5132a1fd1a6af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Rodrigues?= Date: Fri, 26 Jun 2026 23:43:44 +0100 Subject: [PATCH] fix(cicd): switch act runner to Docker mode with node:20 image Host mode lacks Node.js so actions/checkout@v4 fails. Switch label to ubuntu-latest:docker:node:20 which has Node.js for JS actions. Install Docker CLI in the deploy job since node:20 doesn't include it. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/deploy.yaml | 3 +++ infrastructure/terraform/act-runner.tf | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 9517a6f..ba8424e 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -23,6 +23,9 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Docker CLI + run: apt-get update -qq && apt-get install -y -qq docker.io + - name: Login to Gitea registry run: | echo "${{ secrets.REGISTRY_PASSWORD }}" \ diff --git a/infrastructure/terraform/act-runner.tf b/infrastructure/terraform/act-runner.tf index 12af361..471d481 100644 --- a/infrastructure/terraform/act-runner.tf +++ b/infrastructure/terraform/act-runner.tf @@ -106,7 +106,7 @@ resource "kubernetes_deployment" "act_runner" { --instance http://gitea-http.gitea.svc.cluster.local:3000 \ --token "$(cat /etc/runner-token/token)" \ --name "k3d-runner-$(hostname)" \ - --labels ubuntu-latest + --labels ubuntu-latest:docker:node:20 fi exec act_runner daemon --config /etc/act-runner/config.yaml EOT