woodpecker-pipelines
БесплатноБез исполняемых скриптовНе проверенPatterns and hard-won gotchas for designing, debugging, and writing Woodpecker CI pipeline files. Use when authoring or editing `.woodpecker.yml` /…
от fred-drake★ 28 звёзд на GitHubОб этом скилле
Woodpecker pipelines
File layout: single-file vs multi-file is exclusive
A repo can have either .woodpecker.yml at the root, or a .woodpecker/ directory containing one or more *.yml files. The two modes are mutually exclusive at the server level: as soon as .woodpecker/ exists with any .yml files, the single-file .woodpecker.yml is ignored even if still present. To migrate from one mode to the other, do it in a single commit (e.g. git mv .woodpecker.yml .woodpecker/ci.yml) so there is never a window where one is silently being read.
Multi-workflow trigger semantics
In multi-file mode, every workflow whose when: matches the trigger runs in parallel. There is no concept of a "primary" workflow. To make a manual "Run Pipeline" click trigger only one workflow (e.g., a TestFlight submission, not a regular CI run), include event: manual in the target workflow's when: and omit manual from every other workflow's when:.
Failure mode: leaving event: [push, pull_request, manual] on a CI workflow and event: manual on a release workflow means a single Run-Pipeline click fires both in parallel — likely shipping accidentally.
# .woodpecker/ci.yml — push + PR only
when:
- event: [push, pull_request]
# .woodpecker/release.yml — manual only
when:
- event: manual
Variable interpolation in commands: is a minefield
Woodpecker pre-processes every commands: string through its own templating engine before bash ever sees it. The templater inherits Drone's ${build.*} / ${commit.*} etc. namespace and is finicky about syntax. Empirically the failure modes vary by form:
| In your YAML | What Woodpecker does |
|---|---|
${VAR} |
Substitutes to the matching template var, or to empty string if the name is unknown. No error. |
$VAR (bare, no braces) |
Sometimes passes through (e.g., $HOME, $2 in awk '{print $2}'); sometimes errors with "unable to parse variable name" and rejects the entire workflow. The split is not predictable from the YAML alone. |
$${VAR} |
Errors with "missing closing brace" and rejects the workflow. Despite $$ being documented as the escape, combining it with {...} doesn't pass through cleanly. |
Worst-case symptom: in multi-pipeline layouts, a templating rejection in one workflow blocks every other workflow in the repo from running for that trigger. So a botched ${VAR} in a release workflow can stop the regular CI dead, with no obvious connection.
Rule of thumb when you need to use a value inside commands::
- If the value is static, write it literally. No interpolation, no surprises.
- If the value comes from secrets or repo-level config, use the step's
environment:map. Woodpecker resolves it at scheduling time, before the templater runs.
Then bash seesenvironment: ASC_KEY_ID: from_secret: asc_key_id PROFILE_NAME: "Thrifter App Store Distribution"$ASC_KEY_IDas a normal env var. No YAML-side$. - If the value comes from runtime computation (file contents, tool output), keep it inside
$(...)command substitution. The templater does not try to parse inside command substitution. The result lives in a bash-local variable that you reference with bare$nameinside the same|block — and do not put that bash variable inside another double-quoted YAML string that the templater will scan. - If you absolutely must interpolate a runtime value into a string Woodpecker scans, write the string to a file and pass the file (
git commit -F /tmp/msg,xcodebuild -exportOptionsPlist /tmp/opts.plist, etc.).
woodpecker-cli lint does not catch any of these templating issues — it accepts forms the server later rejects. Treat lint as syntax-only.
Privileged plugins need two gates open
Plugins that run with privileged: true (e.g. woodpeckerci/plugin-docker-buildx for image building) require both gates to pass:
- Agent allowlist — the agent's
WOODPECKER_PLUGINS_PRIVILEGEDenv var must include the plugin image's repo name (without tag). Configured server-side; one agent, one allowlist. - Repo trust level — admin must flip the repo's trust flags in the Woodpecker UI: repo Settings → Project → Trust. In Woodpecker v3 the toggles are split into Network, Volumes, and Security —
privileged: trueis gated by Security.
If only the agent gate is open, you'll see:
linter: steps.<step-name>: Insufficient trust level to use privileged mode
This is a parse-time rejection — the pipeline ends up in error status with no step logs. The error is visible in the UI's Errors tab next to the failed pipeline, but woodpecker-cli pipeline show won't reveal it.
The trust level is operational state in Woodpecker's database, not anything declarable from the agent/server Nix config. New repos are untrusted by default, so this gate has to be flipped manually the first time a repo wants to
Установить woodpecker-pipelines в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл woodpecker-pipelines?
Patterns and hard-won gotchas for designing, debugging, and writing Woodpecker CI pipeline files. Use when authoring or editing `.woodpecker.yml` / `.woodpecker/*.yml`, when a pipeline shows `error` status with no step logs, when shell variables in `commands:` blocks are not interpolating as expected, when splitting between single-file and multi-pipeline directory layouts, or when running iOS signing / archive flows on a non-interactive Mac agent. Companion to the `woodpecker-cli` skill (which is the CLI reference) — this one is the workflow-design + debugging reference.
Как установить скилл woodpecker-pipelines?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл woodpecker-pipelines запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic