Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

woodpecker-upgrade

БесплатноБез исполняемых скриптовНе проверен

Upgrade Woodpecker CI across the server, Linux agent, and macOS agent while keeping the gRPC protocol version in lockstep. Use when the user wants to upgrade…

fred-drakeот fred-drake★ 28 звёзд на GitHub

Об этом скилле

Woodpecker Upgrade

Woodpecker's server and agents communicate over a gRPC protocol whose version is tied to the release. Mismatches are fatal — the agent logs server version X reports grpc version N but we only understand M and enters a crash loop. This setup has three independent version anchors that must be upgraded together.

Where Woodpecker Versions Live

Anchor File What it pins
Server image apps/fetcher/containers.toml → woodpeckerci/woodpecker-server Runs on orgrimmar as podman-woodpecker-server.service
Linux agent image apps/fetcher/containers.toml → woodpeckerci/woodpecker-agent Runs on orgrimmar as podman-woodpecker-agent.service, docker backend
macOS agent binary inputs.nixpkgs-woodpecker-agent in flake.nix Built by nix, runs on macbook-pro as a user launchd agent, local backend

The server image and Linux agent image are pinned to an exact tag (e.g. v3.16.0, not v3 or another floating tag — floating tags are unreliable, see Gotchas). The macOS agent is pinned via a dedicated nixpkgs input separate from the main nixpkgs input, so nix flake update cannot bump it accidentally.

Network Topology Reminder

  • Server HTTP (webhooks + UI): https://woodpecker.internal.freddrake.com/api/hook → nginx → container port 8000
  • Server gRPC (agents): 10.1.1.4:9010 (tailnet-facing) → container port 9000
    • Host port is 9010, not 9000, because prometheus node_exporter owns 10.1.1.4:9000
  • Local agent on orgrimmar: connects via the internal podman network
  • Mac agent: connects to 10.1.1.4:9010 over the tailnet, plain gRPC (no TLS)

Upgrade Procedure

Step 1: Pick the target version

Always upgrade to an exact release (e.g. v3.13.1, v3.14.0), never a rolling tag. Check:

To find a nixpkgs rev that has a specific Woodpecker version:

# Check what the main nixpkgs currently has
nix eval --impure --raw --expr 'with import <nixpkgs> {}; woodpecker-agent.version'

# Or check a specific rev
nix eval --impure --raw --expr '(import (builtins.fetchTarball "https://github.com/nixos/nixpkgs/archive/<REV>.tar.gz") {}).woodpecker-agent.version'

When nixpkgs master has the target version, grab its rev from https://github.com/nixos/nixpkgs/commits/nixos-unstable or via the package's PR.

Step 2: Update the three anchors

All three files must change in the same commit. Leaving any anchor behind will kill one of the agents.

2a. Server + Linux agent images (apps/fetcher/containers.toml):

containers
repository = "docker.io"
name = "woodpeckerci/woodpecker-server"
tag = "v3.16.0"         # ← bump this
architectures = ["linux/amd64"]
containers
repository = "docker.io"
name = "woodpeckerci/woodpecker-agent"
tag = "v3.16.0"         # ← bump this to same version
architectures = ["linux/amd64"]

Then regenerate digests:

just update-container-digests

2b. Key references in modules/services/woodpecker-ci.nix:

image = containers-sha."docker.io"."woodpeckerci/woodpecker-server"."v3.16.0"."linux/amd64";
image = containers-sha."docker.io"."woodpeckerci/woodpecker-agent"."v3.16.0"."linux/amd64";

The attr key must match the tag from containers.toml exactly.

2c. macOS agent rev (flake.nix):

nixpkgs-woodpecker-agent.url = "github:nixos/nixpkgs/<NEW_REV>";

Then refresh the lock:

nix flake lock --update-input nixpkgs-woodpecker-agent

Step 3: Verify versions align before deploying

# Confirm mac agent binary version in the evaluated darwin config
nix eval --no-warn-dirty --impure --raw --expr \
  'let f = builtins.getFlake (toString ./.); args = f.darwinConfigurations.macbook-pro.config.home-manager.users.fdrake.launchd.agents.woodpecker-agent.config.ProgramArguments; in builtins.elemAt args 2' \
  | grep -oE 'woodpecker-agent-[0-9.]+'

Confirm this matches the image tag in containers.toml.

Step 4: Deploy orgrimmar first

The mac agent is already in a retry loop. Bringing the server up first means the agent reconnects immediately; bringing the agent up first causes extra error logs until the server follows.

just colmena orgrimmar

Watch the woodpecker-server container come up:

ssh -p 2222 [email protected] 'systemctl status podman-woodpecker-server --no-pager -n 5'
ssh -p 2222 [email protected] 'curl -s localhost:8000/version'

Step 5: Deploy macbook-pro

just switch

Then verify the agent connected:

launchctl list | grep woodpecker-agent
tail -20 ~/.local/state/woodpecker-agent/agent.err

A healthy agent shows starting Woodpecker agent with version 'X.Y.Z' and backend 'local' using platform 'darwin/arm64' and no gRPC mismatch errors. Then check the Woodpecker UI — the `macbook-p

Полный SKILL.md на GitHub

Установить woodpecker-upgrade в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл woodpecker-upgrade?

Upgrade Woodpecker CI across the server, Linux agent, and macOS agent while keeping the gRPC protocol version in lockstep. Use when the user wants to upgrade Woodpecker, bump the agent or server, or investigate a "GRPC version mismatch" error.

Как установить скилл woodpecker-upgrade?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл woodpecker-upgrade запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить woodpecker-upgrade с