Skip to content

Deploy Hypeman staging after merges to main - #446

Merged
sjmiller609 merged 1 commit into
mainfrom
hypeship/auto-deploy-staging
Aug 25, 2026
Merged

Deploy Hypeman staging after merges to main#446
sjmiller609 merged 1 commit into
mainfrom
hypeship/auto-deploy-staging

Conversation

@sjmiller609

@sjmiller609 sjmiller609 commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

summary

  • trigger a staging deployment after commits land on main
  • dispatch the existing kernel/infra Hypeman deploy workflow with the exact merged commit SHA
  • use the repository admin app token for cross-repository workflow access

testing

  • actionlint .github/workflows/deploy-staging.yml
  • git diff --check main...HEAD

Note

Medium Risk
Introduces automated staging deploys on every main push and relies on admin app credentials to trigger infra workflows; misconfiguration could deploy wrong refs or fail silently if secrets or infra workflow inputs change.

Overview
Adds a new GitHub Actions workflow that automatically deploys Hypeman to staging whenever commits land on main.

The job mints a GitHub App token (ADMIN_APP_ID / ADMIN_APP_PRIVATE_KEY) scoped to kernel/infra with Actions write permission, then uses gh workflow run to trigger ansible-deploy-hypeman.yml with env=staging, ref set to the pushed commit SHA, and cli-version=latest. Workflow permissions stay minimal (contents: read at the workflow level; cross-repo dispatch uses the app token).

Reviewed by Cursor Bugbot for commit efb2337. Bugbot is set up for automated code reviews on this repo. Configure here.

@sjmiller609
sjmiller609 marked this pull request as ready for review August 25, 2026 19:12

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit efb2337. Configure here.

Comment thread .github/workflows/deploy-staging.yml
@sjmiller609
sjmiller609 requested a review from hiroTamada August 25, 2026 19:20
@sjmiller609
sjmiller609 merged commit 5ce2a46 into main Aug 25, 2026
9 checks passed
@sjmiller609
sjmiller609 deleted the hypeship/auto-deploy-staging branch August 25, 2026 19:28
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.

2 participants