/cicd-tooling-skills:gitea-actions-and-cifrom cicd-tooling-skills
Configures Gitea Actions CI/CD including self-hosted act_runner setup, registration, and differences from GitHub Actions (supported contexts, missing features, runner labels).
Ships in cicd-tooling-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Gitea Actions gives a self-hosted Gitea (or Forgejo) instance a CI system
that intentionally mirrors GitHub Actions' workflow YAML syntax
(.gitea/workflows/*.yml, on:/jobs:/steps:), executed by a
self-hosted act_runner rather than GitHub's managed runners. This
matters operationally because most GitHub Actions YAML is reusable with
caveats, but the caveats — a smaller set of built-in contexts, no
GitHub-hosted runner equivalent, different marketplace-action
compatibility, and a distinct runner registration/labeling model — cause
real friction when a team assumes full parity. This skill covers Gitea
Actions setup and specifically where it diverges from
github-actions-single-repo-workflows,
which this skill assumes as the baseline syntax reference.
act_runner against a Gitea
instance, or debugging why a workflow job never picks up a runner.act(the local GitHub Actions runner it's derived from).Enable Actions at the instance level first, then per-repo — Gitea Actions is disabled by default at both levels historically; confirm Site Administration → Actions → Actions is enabled before debugging a repo that "has no CI" for any other reason.
Register at least one act_runner. Download/run the act_runner
binary or container, generate a registration token from the instance
(Site Administration → Actions → Runners → Create new Runner, or
gitea actions generate-runner-token on the server), and register:
act_runner register \
--instance https://gitea.example.com \
--token ${GITEA_RUNNER_TOKEN} \
--name ci-runner-1 \
--labels ubuntu-latest:docker://node:20-bullseye,linux_amd64
act_runner daemon
The --labels mapping is important: unlike GitHub-hosted runners,
act_runner's labels are locally defined and must explicitly map a
label like ubuntu-latest to a container image — there is no implicit
GitHub-managed ubuntu-latest image behind the scenes.
Write the workflow under .gitea/workflows/, not
.github/workflows/ — this is the single most common porting
mistake:
# .gitea/workflows/ci.yml
name: ci
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "20" }
- run: npm ci
- run: npm test
Verify marketplace action compatibility before relying on one.
Gitea Actions supports actions written for GitHub Actions in principle
(it runs the same action.yml format), but actions calling GitHub-
specific REST APIs (e.g. posting a check run via the GitHub API,
using actions/github-script against github.com endpoints) won't
work unmodified against a Gitea instance — prefer generic shell-based
actions or Gitea-specific forks (many popular actions have a
https://gitea.com/... mirror maintained for this reason) for
anything that talks to the forge's API directly.
Use docker:// prefixed images for portability where an action
needs a specific toolchain, since act_runner's default execution model
is container-based and this keeps behavior consistent across runner
hosts:
jobs:
build:
runs-on: docker
container:
image: golang:1.22-bookworm
steps:
- uses: actions/checkout@v4
- run: go build ./...
Scope runners deliberately (instance-wide, org-level, or repo-level registration) matching your trust boundary — a repo-scoped runner only picks up jobs from that one repo, which limits blast radius if a workflow in one repo were to run malicious code, versus an instance-wide runner available to every repo on the instance.
Treat every runner host as sensitive infrastructure, since (unlike GitHub-hosted runners, which are ephemeral and managed by GitHub) a self-hosted act_runner persists state and credentials on infrastructure your team fully controls and must patch/harden itself — apply the same self-hosted-runner security posture called out generically in ci-cd-pipeline-design.
Check job/runner matching when a job never starts. A job with
runs-on: ubuntu-latest stays queued forever if no registered runner
advertises that exact label — confirm via Site Administration →
Actions → Runners (or org/repo scoped runner list) which labels are
actually registered.
.gitea/workflows/*.yml syntax close to plain GitHub Actions YAML
(avoid Gitea-only extensions unless necessary) if there's any chance of
needing to run the same repo on GitHub too — this maximizes portability
in both directions.ubuntu-latest/macos-latest meaning, Gitea's labels
are whatever the team defined at registration time and can silently
diverge between runner hosts if not centrally managed.actions/checkout@v4, not @main) — see
github-actions-single-repo-workflows
for why this matters, and it applies identically here.Symptom: A workflow file exists in the repo but no CI ever runs, no
error shown anywhere obvious.
Fix: Check the file is under .gitea/workflows/, not
.github/workflows/ (a straight copy from a GitHub-based repo commonly
leaves it in the wrong path), and confirm Actions is enabled both
instance-wide (Site Administration → Actions) and for the specific
repository (Repository Settings → Actions).
Symptom: A job stays queued/pending indefinitely and never starts.
Fix: No registered act_runner advertises the label in runs-on:
(e.g. ubuntu-latest) — check Site Administration → Actions →
Runners for the actual registered labels, and either register a
runner with that label or change runs-on: to match an existing one.
Symptom: A marketplace action that works fine on GitHub Actions
fails on Gitea with an API error or silently no-ops (e.g. an action
that's supposed to post a PR comment via the GitHub API does nothing).
Fix: The action is calling GitHub's REST API directly rather than
using a forge-agnostic mechanism; look for a Gitea-compatible fork/
mirror of the action, or replace it with a plain shell step using
Gitea's own API (https://gitea.example.com/api/v1/...) with a
suitably scoped token.
Symptom: Two different repos' workflows produce different build
results even though the workflow YAML is identical.
Fix: Runner labels map to specific container images defined at
registration time on each act_runner host — if two runner hosts were
registered with the same label (e.g. ubuntu-latest) pointing at
different underlying images/tags, jobs land on inconsistent
environments; centralize and document the label-to-image mapping so all
runners advertising a given label are actually equivalent.
Symptom: A self-hosted act_runner host is compromised (unpatched OS, exposed Docker socket) and used to exfiltrate secrets from every repo it services. Fix: This is the real risk of self-hosted-only runners with no managed-runner alternative — treat runner hosts as sensitive infrastructure requiring the same patching cadence and network isolation as production systems, scope runners per-repo/org rather than instance-wide where workflows handle sensitive secrets, and never leave the Docker socket reachable from job containers unless the workflow genuinely and trustedly needs Docker-in-Docker.
Scenario: A team self-hosts Gitea for an internal Go service repo and wants CI on every PR (lint, test, build) using a repo-scoped act_runner, after previously running the same workflow logic on GitHub Actions.
Runner registration (run once on the dedicated CI host):
act_runner register \
--instance https://gitea.internal.example.com \
--token ${GITEA_RUNNER_TOKEN} \
--name go-service-runner \
--labels ubuntu-latest:docker://golang:1.22-bookworm,linux_amd64
act_runner daemon
.gitea/workflows/ci.yml (ported from an equivalent
.github/workflows/ci.yml, changing only the path and dropping one
GitHub-API-dependent step):
name: ci
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: go vet ./...
- run: go test ./... -coverprofile=coverage.out
- run: go build -o bin/service ./cmd/service
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out
The team drops a previously-used github-script step that posted a PR
comment via the GitHub REST API (not compatible against a Gitea instance)
and replaces it, where still needed, with a plain curl call against
Gitea's own /api/v1/repos/{owner}/{repo}/issues/{index}/comments
endpoint using a scoped Gitea access token instead.
workflow_call reusable-workflow support varies by Gitea version; verify current support before relying on it for cross-repo centralization on Gitea.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/aws-codepipeline-and-codedeployDesigns AWS CodePipeline stage/action structure and integrates it with CodeDeploy deployment groups and appspec.yml for EC2/on-prem, ECS, or Lambda deploys. Use when the user asks to "set up CodePipeline," "add a CodeDeploy deployment group," "write an appspec.yml," "wire CodePipeline to CodeDeploy," "troubleshoot a stuck/failed CodePipeline action," or "add a manual approval action before an AWS deploy."
/azure-pipelines-yaml-and-multi-stageDesigns Azure Pipelines YAML (azure-pipelines.yml), multi-stage pipelines with environments/approvals, templates for reuse across repos, and self-hosted vs. Microsoft-hosted agent pools. Use when the user asks to "set up Azure Pipelines," "write an azure-pipelines.yml," "add a multi-stage pipeline with approvals," "create a reusable pipeline template," "configure a self-hosted agent pool," or "troubleshoot a stuck/failed Azure DevOps pipeline run."
/bamboo-pipeline-yaml-and-java-specsAuthors Atlassian Bamboo pipeline definitions using either Bamboo Specs (Java DSL, compiled and run to create/update a plan) or Bamboo's YAML specs format, covering plan/job/stage structure and how a Specs definition links to and updates a live Bamboo plan. Use when the user asks to "write a Bamboo Specs plan," "convert our Bamboo plan to code," "add a stage/job to a Bamboo build," "use Bamboo YAML specs," or "troubleshoot a Bamboo Specs plan not updating the linked plan."
/complete-cicd-pipeline-deployment-for-kubernetes-from-scratchBuilds a complete CI/CD pipeline for a Kubernetes-targeted service from an empty repo — source checkout, container image build, SCA/SAST security gates, registry push, and a deploy step that ends at a GitOps handoff (committing a new image tag to a manifests repo) rather than a direct kubectl apply or helm upgrade against the cluster. Use when the user asks to "build a full CI/CD pipeline for Kubernetes from scratch," "set up CI/CD that ends in a GitOps commit, not a cluster deploy," "wire a container build pipeline into Argo CD/Flux," or "go from an empty repo to a Kubernetes service deployed via GitOps end-to-end."
/complete-cicd-pipeline-deployment-for-serverless-from-scratchBuilds a complete CI/CD pipeline for a serverless (AWS Lambda-style) function from an empty repo — source checkout, zip/layer packaging (not a container image), SCA/SAST security gates, package upload, and a SAM/Serverless-Framework/CDK-style deploy step with alias-based canary traffic shifting, distinct from Kubernetes rollout mechanics. Use when the user asks to "build a full CI/CD pipeline for a Lambda function from scratch," "set up serverless CI/CD with canary traffic shifting," "wire SAM/Serverless Framework deploys into a pipeline," or "go from an empty repo to a function deployed with an alias-based canary."
/complete-cicd-pipeline-for-vm-based-workloads-from-scratchBuilds a complete CI/CD pipeline for a VM-based workload from an empty repo — source checkout, build, immutable machine-image baking (Packer-style AMI, not a container image or a zip), SCA/SAST security gates, and a deploy step that's either a blue-green instance-group swap or a config-management push (Ansible) to existing long-lived VMs, distinct from both container and serverless deploy mechanics. Use when the user asks to "build a full CI/CD pipeline for EC2/VM workloads from scratch," "bake an AMI in CI and roll it out blue-green," "push Ansible-managed config to existing VMs from a pipeline," or "go from an empty repo to a VM fleet deployed with a golden image and Auto Scaling Group swap."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin cicd-tooling-skillsOther plugins' skills for the same job