← Gagarin CloudCONTENT HISTORY

Update to Gagarin Cloud

Snapshot Nov 27, 2026 · 20:21 UTC · version 1.23.0

Collection source: downloaded plugin package.

WHAT CHANGED

First saved snapshot

No earlier snapshot is available to establish a change.

Save Gagarin Cloud and check future changes in Following.

Up to 3 plugins free · no card required.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "description": "Wire a repository's CI pipeline to deploy to Gagarin Cloud on push — mint a scoped deploy credential, store it as a secret, and write the workflow. Use when the user asks to set up continuous deployment, automate deploys, or deploy from GitHub Actions or another CI system to Gagarin.",
  "included_files": [],
  "name": "ci",
  "skill_md_contents": "---\nname: ci\ndescription: Wire a repository's CI pipeline to deploy to Gagarin Cloud on push — mint a scoped deploy credential, store it as a secret, and write the workflow. Use when the user asks to set up continuous deployment, automate deploys, or deploy from GitHub Actions or another CI system to Gagarin.\n---\n\nYou wire this repository's CI to deploy to Gagarin Cloud on push.\n\nRead the `gagarin` skill of this plugin before anything else: its **\"Setting up\nCI\"** section is the recipe. What follows is the order of work and the rules\nyou must not break. If your host offers subagents, run the rest of this in one:\nit is a long procedure, and the main conversation only needs its report.\n\nEverything here runs on the machine that holds the repository. If you cannot\nrun commands where you are (ChatGPT on the web, for instance), hand the user\nthe recipe instead — the `gg creds create` line and the workflow — and say\nwhich secret to set where. Do not try to do it over the MCP tools: no tool\nthere hands out a secret, by design.\n\n## The order\n\n1. **`gg whoami`** — you need a working credential to mint one from. If there is\n   none, stop and tell the user to run this plugin's `setup` skill\n   (`/gagarin:setup` in Claude Code).\n2. **Find out what CI they use.** Look for `.github/workflows/`, `.gitlab-ci.yml`,\n   `.buildkite/`, `cloudbuild.yaml`. Ask if it is ambiguous. Do not assume GitHub.\n   `git remote get-url origin` says where the repository lives.\n3. **Check the forge CLI.** On GitHub that is `gh auth status`; on GitLab,\n   `glab auth status`. If it is missing or not signed in, say so before minting\n   anything: ask the user to install it and run `gh auth login` / `glab auth\n   login` themselves, or to set the secret by hand (see below). Do not sign in\n   for them.\n4. **Confirm the project and service names** and which branch should deploy.\n   Read `.gagarin.json` at the repository root first — the note of which\n   project this is, if a deploy left one — then `gg status` or `gg projects`\n   rather than guessing. If the two disagree, the API is right. Do not write\n   the note here if it is absent: that is the deploy's job, and there may be\n   no project yet.\n5. **Mint a credential straight into the secret store**, named for where it\n   will live (`\"github actions: <owner>/<repo>\"`) — the one-line pipe in the\n   rule below, never `gg creds create` on its own, which prints it.\n6. **Write the workflow.** Install gg, `gg registry login`, build and push\n   tagged with the commit, deploy, then `gg status`.\n7. **Tell them what to check** on the first run — and, once they have pushed,\n   watch it with the forge CLI (the skill's \"Watch the first run\").\n\n## Rules that are not negotiable\n\n- **Never run `gg login` in CI, and never copy this machine's credential into\n  it.** A pipeline gets one of its own.\n- **The minted secret must never reach the transcript, a file, or your output.**\n  `gg creds create` prints it to stdout alone on its line, everything else to\n  stderr, precisely so it can be piped without touching disk:\n\n  ```sh\n  gh secret set GAGARIN_TOKEN --body \"$(gg creds create --name \"github actions: acme/web\" 2>/dev/null)\"\n  ```\n\n  On GitLab, the same shape:\n\n  ```sh\n  glab variable set GAGARIN_TOKEN --masked --value \"$(gg creds create --name \"gitlab ci: acme/web\" 2>/dev/null)\"\n  ```\n\n  Run it as one command. Do not capture it into a shell variable you later echo,\n  do not print it \"to confirm\", and do not write it into a file — not even a\n  temporary one. It is shown once; Gagarin keeps only a hash. If the user needs\n  it again they revoke and mint another.\n- **No signed-in forge CLI means you do not mint it.** There is no route from\n  here to the secret store that skips your output. Hand the user the\n  `gg creds create --name \"…\"` command to run in their own terminal and say\n  where in the CI settings to paste it.\n- **`gg registry login` is not optional** before any `gg build --push`,\n  `gg push` or `gg registry copy`. Docker has no idea what a Gagarin credential\n  is until it runs, and the failure without it is a `401` out of `docker push`.\n- **Tag with the commit, explicitly.** `${{ github.sha }}` is what makes a\n  deploy reproducible and a rollback explicable. `gg build` with no tag uses\n  the short hash only when the checkout is clean and falls back to the clock\n  otherwise, and a pipeline that writes a file before building is not clean —\n  so never leave the tag to it in CI.\n- **`gg status` at the end is a report, not a gate.** Do not write a polling\n  loop in CI. If they want a gate, gate on their own health check against the\n  service's address.\n\n## What the credential can and cannot do\n\nSay this to the user explicitly, because it is the reason this is safe: what you\nminted **can deploy but cannot destroy** — no flag turns that on — it **expires**\n(90 days by default, 365 maximum, never \"never\"), and it **cannot mint another**.\nTell them the expiry date and that rotating means minting the new one, updating\nthe secret, then `gg creds revoke <id>`.\n\n## Finishing\n\nReport which secret you set, where, what the workflow does on which branch, and\nwhen the credential expires. Do not trigger a deploy to test it unless the user\nasks — that is their push to make. If they push while you are here and the\nforge CLI is signed in, watch the run to the end and report how it finished,\nwith the failing step's log if it failed, then `gg status`.\n"
}

SHA-256 of public snapshot: 523fab164272d0cd9c5c20e002953f9d498bbcfd8db265d9d7ed4668b7a2b999