From 664c8e9126ce4d8579192649b705c9c7f80c85c0 Mon Sep 17 00:00:00 2001 From: ilker Date: Wed, 16 Sep 2026 01:19:12 +0200 Subject: [PATCH] ci: add workflow_dispatch and take the Go version from go.mod The runner this targets is a containerized act_runner registered with the ubuntu-latest label, separate from maas-builder: that one runs in host mode as root on the image build machine, which is not somewhere a test suite belongs. workflow_dispatch lets the queued runs be retried from the UI once a runner exists, without needing an empty commit. Co-Authored-By: Claude Opus 5 (1M context) --- .gitea/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 65ed218c..e45f4e81 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,9 +1,17 @@ +# Runs on a containerized act_runner (label: ubuntu-latest). +# +# The runner needs outbound access to the Docker registry for its job image and +# to github.com for the actions below. If GitHub is unreachable from the runner, +# replace the checkout step with a plain `git clone` and install Go by hand — +# see .gitea/workflows/README.md in maas-proxmox for that pattern. name: CI on: push: branches: [main] pull_request: + # Lets a queued or failed run be retried from the UI without a new commit. + workflow_dispatch: jobs: test: @@ -13,7 +21,8 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: "1.26" + # Track the toolchain in go.mod rather than pinning it twice. + go-version-file: go.mod cache: true - name: Check formatting