feat: add ship release and deploy skill
This commit is contained in:
1 parent
3d7e3adea1
commit
a9087b29f4
6 files changed
+216
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# Deployment (deployments org) subagent brief
|
||||
|
||||
For profiles `full` and `container`. Template; append the shared rules from conventions.md.
|
||||
|
||||
```
|
||||
Create a new local git repo at ~/projects/deployments/<name> (if it exists, update it with new commits instead) that will become https://git.bjphoster.com/deployments/<name> (branch `main` only). Do not deploy anywhere.
|
||||
|
||||
What it deploys: <name> (<one line on what it is>) from the image `<image repo>:${<NAME>_VERSION}` where <image repo> is `git.bjphoster.com/docker/<name>` (full) or `git.bjphoster.com/source/<name>` (container); first version <version>; built elsewhere, the deployment must NOT build images. Read <source path> (and ~/projects/docker/<name> if it exists) for runtime details, read only: config example, docs, dockerfile. Runtime facts: <workdir, config path inside the image, default data/auth dirs, files the app writes at runtime, port, UI/health URLs>. Every path the app writes must be persistent; a config file the app rewrites must be a writable bind mount, not :ro. Check whether config can come from environment variables; if yes prefer env.example entries, otherwise ship an example config file and explain in the README where to copy it.
|
||||
|
||||
Target host: <host> (<arch>, <RAM>), deployed at /srv/<fqdn>, public name <fqdn>, behind Traefik <version> (external network `traefik` with subnet <subnet>, entrypoint `https`, certresolver `<resolver>`, middleware `hsts` from Traefik's labels; certificate for <fqdn> <already in acme.json | will be issued on first request>). Behind Traefik the app sees the proxy's address: configure trusted proxies / real-IP handling to cover <subnet> if the app supports it, and any "allow remote" switch the admin UI needs. <App-specific settings, e.g. routing strategy.>
|
||||
|
||||
Conventions (follow exactly; read every file and the git log of ~/projects/deployments/netbox-mcp-server and ~/projects/deployments/coredns-web-ui):
|
||||
- History: `first commit` with MIT LICENSE (Copyright (c) 2026 Bryan Joshua Pedini) and a one-line README.md, then a `<name> deployment` commit with docker-compose.yml (starting with `---`), env.example, .gitignore (.env and the data dir), a short README with a Usage section (cp env.example .env; docker compose up -d) and an Update section, plus any example config.
|
||||
- Single HTTPS Traefik router only, no HTTP router, no Diun labels; labels as in netbox-mcp-server. env.example `# Træfik` block with defaults for this host: TRAEFIK_MATCHRULE=Host(`<fqdn>`), router/service names like <fqdn with dots as underscores>, TRAEFIK_MIDDLEWARES=hsts, TRAEFIK_CERTRESOLVER=<resolver>, <NAME>_VERSION=<version>, data dir ./data, TZ=Europe/Rome.
|
||||
- Secrets never in the repo: placeholders like `changeme` in examples, real values generated on the host at deploy time.
|
||||
|
||||
Validate with `docker run --rm -v "$PWD":/w -w /w docker:cli docker compose --env-file env.example config` (docker:cli image; check it is present first, remove it afterwards if you pulled it). Add remote origin https://git.bjphoster.com/deployments/<name>.git, do not push.
|
||||
|
||||
Report: file list with a contents summary, commit list, and the exact steps to deploy on the host (files to create, where the config goes, which secrets to generate and how).
|
||||
```
|
||||
Reference in new issue
Block a user