gha-pipelines
БесплатноБез исполняемых скриптовНе проверенCreate and modify GitHub Actions CI/CD workflows for the homelab repository. Covers validation pipelines, OCI artifact promotion, and infrastructure testing…
от ionfury★ 25 звёзд на GitHubОб этом скилле
GitHub Actions Pipelines
This repository uses mise for tool version management so CI and local dev use identical versions. Delegate to Taskfile commands, not raw CLI. Follow homelab-specific conventions below; for generic GHA patterns (matrix builds, github-script, action catalog), see the global gha-pipelines skill.
Core Patterns
Tool setup — always jdx/mise-action@v3, never apt-get/brew:
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
- run: task k8s:validate
Actions reference:
| Need | Action |
|---|---|
| Checkout | actions/checkout@v7 |
| Tool setup | jdx/mise-action@v4 (reads .mise.toml) |
| GHCR login | docker/login-action@v4 |
| GitHub API | actions/github-script@v9 |
| Flux CLI | fluxcd/flux2/action@v2 |
Path-based triggers — always include the workflow file itself and .mise.toml:
on:
pull_request:
paths:
- "kubernetes/**"
- ".github/workflows/kubernetes-validate.yaml"
- ".mise.toml"
- ".taskfiles/kubernetes/**"
workflow_dispatch:
YAML schema comment on every workflow file:
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
Permissions — always minimal:
permissions:
contents: read
packages: write # Only when pushing to GHCR
statuses: read # Only when reading commit status events
Workflow Inventory
| Workflow | Trigger | Purpose |
|---|---|---|
kubernetes-validate.yaml |
PR (kubernetes/) | Lint, expand ResourceSets, build, template, kubeconform, pluto |
infrastructure-validate.yaml |
PR (infrastructure/) | Format checks, module tests (matrix per module) |
renovate-validate.yaml |
PR (renovate config) | Validate Renovate configuration |
build-platform-artifact.yaml |
Push to main (kubernetes/) | Build OCI artifact, tag as stable, create GitHub Release |
check-version-holds.yaml |
Weekly / push (version-holds.yaml) / manual | Monitor upstream issues for held-back versions |
renovate.yaml |
Scheduled (hourly) | Dependency update automation |
label-sync.yaml |
Scheduled / manual | Sync GitHub labels |
OCI Promotion Pipeline
For full pipeline tracing and debugging, see the promotion-pipeline skill.
Key design decisions when modifying these workflows:
- The pipeline is direct build-to-live: the build workflow tags artifacts as stable (
X.Y.Z+sha-<short>+validated-<short>) at build time — there is no separate promotion workflow - Build workflow queries GHCR for the latest stable tag, bumps patch, and creates a GitHub Release
- Integration polls with
semver >= 0.0.0-0; live polls>= 0.0.0— both receive the same stable artifacts (integration is not a gate)
New Validation Workflow Template
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: <Domain> Validate
on:
pull_request:
paths:
- "<domain>/**"
- ".github/workflows/<domain>-validate.yaml"
- ".mise.toml"
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: jdx/mise-action@v4
- run: task <domain>:validate
Anti-Patterns
- NEVER install tools with
apt-getorbrew— usemise - NEVER use raw
curl/jqfor GitHub API — useactions/github-script - NEVER hardcode versions in workflow files — versions come from
.mise.tomlorversions.env - NEVER use
permissions: write-all— specify exact permissions needed - NEVER skip
workflow_dispatch— all workflows support manual runs
Cross-References
- .github/CLAUDE.md — Declarative workflow architecture
- promotion-pipeline skill — Debugging promotion failures
- .taskfiles/CLAUDE.md — Task commands used in workflows
Установить gha-pipelines в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл gha-pipelines?
Create and modify GitHub Actions CI/CD workflows for the homelab repository. Covers validation pipelines, OCI artifact promotion, and infrastructure testing. Use when: (1) Creating new GitHub Actions workflows, (2) Modifying existing CI/CD pipelines, (3) Adding validation or testing stages, (4) Debugging workflow failures. Triggers: "github actions", "workflow", "ci/cd", "pipeline", "gha", "build artifact", "validation workflow", "ci pipeline"
Как установить скилл gha-pipelines?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gha-pipelines запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub