deploy-server
Skill475 starsChanged 5 months agoMITView on GitHub
Release the standalone cockpit-server zips for Linux hosts (VPS). Use when the user asks to deploy, release or "criar a tag" of the server, publish the cockpit-server zip, or watch/diagnose the cockpit-server-release GitHub Action. Pushes the cockpit-server-v<version> tag (version must equal cockpit/pubspec.yaml) and follows the workflow until the x86_64 and arm64 zips are on the GitHub Release.
- Pipes a download into a shell
- Deletes or force-pushes
- Commits and pushes
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Never kill any user process.
- Very specific: line 39
If the tag already exists and has a published release, ask the user whether they really want to re-release the same version (it overwrites …
- Very specific: line 82
If the release was already published, re-running overwrites the assets (--clobber), which is fine for a same-version fix but tell the user.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
deploy-server
Release of cockpit-server as standalone zips, the thing
https://remote-pi.jacobmoura.work/cockpit-server.sh downloads. Trigger: tag
cockpit-server-v<version>, workflow
.github/workflows/cockpit-server-release.yml. Two native Linux jobs
(ubuntu-24.04 and ubuntu-24.04-arm), no Flutter build, a few minutes each.
Output: GitHub Release cockpit-server-v<version> with
cockpit-server-<version>-linux-x86_64.zip,
cockpit-server-<version>-linux-arm64.zip and SHA256SUMS.
Rules that always apply:
- Work on
main. Never create a branch for a release. - The tag version MUST equal
version:incockpit/pubspec.yaml(the meta job fails otherwise). Client and server are the same version by design: the mobile app refuses a different server version. - This skill publishes the server only. It does not bump
pubspec.yamland does not tag or release the app. It releases the server for the version currently inpubspec.yaml; if that version already has a server release, see the note in pre-flight. - Never kill any user process. No em-dashes in commit messages.
1. Pre-flight
cd cockpit
git status --short && git pull --ff-only
VERSION=$(sed -n 's/^version: *\([0-9][0-9.]*\).*/\1/p' pubspec.yaml); echo $VERSION
( cd packages/cockpit_server && dart analyze && dart test ) # Linux-only cases skip on macOS
bash -n packages/cockpit_server/install.sh tool/build-server-zip.sh install-server.sh
git tag -l "cockpit-server-v$VERSION" # empty = not released yetIf the tag already exists and has a published release, ask the user whether
they really want to re-release the same version (it overwrites the zips with
--clobber). A new version number comes from the app's own release flow,
not from this skill.
2. Tag and watch
git tag cockpit-server-v$VERSION
git push origin cockpit-server-v$VERSION
sleep 20
RUN=$(gh run list --workflow cockpit-server-release.yml --limit 1 --json databaseId --jq '.[0].databaseId')Watch in the background (5 to 10 minutes):
gh run watch $RUN --exit-status >/dev/null 2>&1; echo "exit=$?"
gh run view $RUN --json conclusion,jobs --jq '.conclusion, (.jobs[] | "\(.name): \(.conclusion)")'Jobs: Valida tag ↔ pubspec, zip (x86_64), zip (arm64), GitHub
Release. Each zip job runs the server tests, builds the bundle
(tool/build-server-zip.sh: dart build cli + libcockpit_pty.so + Rust CLI,
manifest, smoke, --version check) and then installs the zip on the runner
with the shipped install.sh (idempotence and ~/.local/bin link checked).
3. On failure
gh run view $RUN --json jobs --jq '.jobs[] | select(.conclusion=="failure") | "\(.databaseId) \(.name): " + ([.steps[] | select(.conclusion=="failure") | .name] | join(", "))'
gh run view --job <jobId> --log-failed | tail -80Fix on main, push, then move the tag and rerun. Moving the tag is
acceptable here ONLY while the GitHub Release job has not published (the
zips are not consumed by any auto-updater; the curl installer reads the
release at install time):
git tag -f cockpit-server-v$VERSION && git push -f origin cockpit-server-v$VERSIONIf the release was already published, re-running overwrites the assets
(--clobber), which is fine for a same-version fix but tell the user.
Known past causes: subosito/flutter-action has no Linux arm64 SDK (the
workflow clones Flutter via git on arm64), exit() dropping unflushed stdout
in --version.
4. After success
gh release view cockpit-server-v$VERSION --json assets -q '.assets[].name'Report the version, run id and assets, and give the user the install line for a host:
curl -fsSL https://remote-pi.jacobmoura.work/cockpit-server.sh | bash # on demand
curl -fsSL https://remote-pi.jacobmoura.work/cockpit-server.sh | bash -s -- --service # + systemd --userDocs live in site/src/app/cockpit/docs/page.tsx (section "Remote hosts &
VPS") and cockpit/README.md; the packaging runbook in
cockpit/packaging/README.md.
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- JustLookAtNow/pt_mate★ 512same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- app/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- cockpit/CLAUDE.mdCLAUDE.md
- pi-extension/CLAUDE.mdCLAUDE.md
- relay/CLAUDE.mdCLAUDE.md
- site/CLAUDE.mdCLAUDE.md
- deploy-cockpitSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

