Skip to content

chore: retire shared app-staging env#96

Merged
posix4e merged 1 commit intomainfrom
chore/retire-staging
Apr 16, 2026
Merged

chore: retire shared app-staging env#96
posix4e merged 1 commit intomainfrom
chore/retire-staging

Conversation

@posix4e
Copy link
Copy Markdown
Contributor

@posix4e posix4e commented Apr 15, 2026

Summary

Per-PR previews (from #95) fully replace the shared staging tier. This PR retires app-staging.devopsdefender.com:

  • New retire-staging.yml — one-shot workflow_dispatch that deletes any lingering dd_env=staging VMs, CF tunnels prefixed dd-staging-, and the app-staging.{domain} DNS CNAME. Idempotent.
  • release.yml — drops the workflow_dispatch trigger (it existed only to redeploy a tag to shared staging) and simplifies deploy-preview now that PR is the only codepath (no more env/OAuth ternaries).
  • README.md — CI/CD section rewritten to describe per-PR previews; STONITH verification note updated.

Rollout

After merge:

  1. Run retire-staging.yml manually once via the Actions UI
  2. Verify no dd_env=staging VMs, dd-staging-* tunnels, or app-staging.{domain} DNS records remain
  3. Delete retire-staging.yml in a follow-up PR once rollout is confirmed

Test plan

  • YAML parses for both release.yml and retire-staging.yml
  • deploy-preview only triggers on pull_request after this change
  • On open, this PR deploys its own preview at pr-{N}.devopsdefender.com (sanity-check the simplified job)
  • After merge, operator runs retire-staging.yml and confirms cleanup

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown

DD preview ready

URL: https://pr-96.devopsdefender.com

Browser login: paste gh auth token output at https://pr-96.devopsdefender.com/auth/pat

CLI / curl: curl -H "Authorization: Bearer $(gh auth token)" https://pr-96.devopsdefender.com/

Register endpoint for a local agent: wss://pr-96.devopsdefender.com/register

Per-PR previews (f61b453) fully replace the shared staging tier.
This PR:

- Adds retire-staging.yml (one-shot workflow_dispatch) to reap the
  leftover `dd_env=staging` VMs, `dd-staging-*` CF tunnels, and the
  `app-staging.{domain}` DNS CNAME.
- Drops the `workflow_dispatch` trigger from release.yml — it only
  existed to redeploy a tag to the shared staging env.
- Simplifies deploy-preview's env/OAuth branching now that PR is the
  only code path.
- Updates README CI/CD section and the STONITH verification note.

After this lands, run `retire-staging.yml` manually once, then the
workflow itself can be deleted in a follow-up.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@posix4e posix4e force-pushed the chore/retire-staging branch from 250aea1 to b5aff73 Compare April 16, 2026 00:01
@posix4e posix4e merged commit d4f8639 into main Apr 16, 2026
3 checks passed
@posix4e posix4e deleted the chore/retire-staging branch April 16, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant