diff --git a/.claude/skills/merge/SKILL.md b/.claude/skills/merge/SKILL.md index 3dca90f..82a2550 100644 --- a/.claude/skills/merge/SKILL.md +++ b/.claude/skills/merge/SKILL.md @@ -89,8 +89,8 @@ Then run `.claude/scripts/gitea.sh GET $REPO/pulls/` and confirm `mergea Keep it short: - PR link and commits. -- What the merge deploys, from the `on.push.paths` in `.gitea/workflows/`. `03`, `04` and `05` deploy on merge, and a change under `.gitea/workflows/` can deploy all three. -- For `01` or `02` changes, say that they are not live until someone runs the manual workflow. +- What the merge deploys, from the `on.push.paths` in `.gitea/workflows/`. `01`, `03`, `04` and `05` deploy on merge. A change under `.gitea/workflows/` can deploy `03`, `04` and `05`, and a change to `01`'s own workflow deploys `01`. +- For `02` changes, say that they are not live until someone runs the manual workflow. - Anything left uncommitted, and a reminder to update `_PULUMI_DEV_YAML` if local Pulumi config changed. Do not delete the branch, dispatch a workflow, or change a live system. diff --git a/CLAUDE.md b/CLAUDE.md index d0e5844..c339a91 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -26,7 +26,7 @@ proxmox-infra → k8s-bootstrap → k8s-infra - **Secrets**: read via `config.requireSecret()`, never via environment variables or hardcoded values. - **`Pulumi.dev.yaml`**: gitignored (contains the encryption salt). Never delete it or secrets become unrecoverable. CI restores it from a base64 Gitea secret `_PULUMI_DEV_YAML`; after changing local config, remind me to update that secret. - **Environment**: `PULUMI_BACKEND_URL` (self-hosted Postgres backend) and `PULUMI_CONFIG_PASSPHRASE` must be set. -- **CI**: PRs run `pulumi preview`. `03`–`05` deploy on push to `main`; `01`/`02` deploy only via manual dispatch. +- **CI**: PRs run `pulumi preview`. `01` and `03`–`05` deploy on push to `main`; `02` deploys only via manual dispatch. Automatic `01` deploys skip `pulumi refresh`, so run its workflow manually after changing VMs in the Proxmox GUI. ## Git conventions diff --git a/CONVENTIONS.md b/CONVENTIONS.md index 58dd3ba..4982f39 100644 --- a/CONVENTIONS.md +++ b/CONVENTIONS.md @@ -60,4 +60,4 @@ This repo uses Gitea Actions (see root `CLAUDE.md`); Gitea's merge commit reuses - `Enhancement: Refactor k8s-bootstrap for clearer deployment order` - `Chore: Upgrade Pulumi packages across all stacks` -Since `01`/`02` deploys are manual (`workflow_dispatch`) and `03`–`05` deploy on merge to `main`, a clear PR title also doubles as a quick changelog of what just went live. +Since `02` deploys are manual (`workflow_dispatch`) and `01` and `03`–`05` deploy on merge to `main`, a clear PR title also doubles as a quick changelog of what just went live. diff --git a/README.md b/README.md index 664cb7c..a540a18 100644 --- a/README.md +++ b/README.md @@ -120,10 +120,11 @@ One workflow per stack, `.gitea/workflows/0N-deploy-.yaml`, scoped to cha | Trigger | Stacks | Action | | --- | --- | --- | | PR → `main` | all | `pulumi preview` (read-only) | +| Push to `main` | 01 | `pulumi up` (no refresh) | | Push to `main` | 03–05 | `pulumi refresh` + `pulumi up` | | Manual dispatch | all | `pulumi refresh` + `pulumi up` | -Stacks 01/02 (VM provisioning, cluster bootstrap) deploy **only** via manual dispatch — they're riskier to automate. +Stack 02 (cluster bootstrap) deploys **only** via manual dispatch, because re-running it restarts the bootstrap sequence. Stack 01 (VM provisioning) skips the refresh on automatic deploys so a VM missing from Proxmox can't be recreated blank. After changing VMs in the Proxmox GUI, run its workflow manually to sync state. ### Required secrets