feat: add create-deployment input for GitHub Deployment tracking#130
Draft
0x46616c6b wants to merge 1 commit intomainfrom
Draft
feat: add create-deployment input for GitHub Deployment tracking#1300x46616c6b wants to merge 1 commit intomainfrom
0x46616c6b wants to merge 1 commit intomainfrom
Conversation
Add opt-in `create-deployment` boolean input that creates GitHub Deployments on the source repository and writes tracking annotations to the Application CR in the mops overlay. This enables the flux-deployment-reporter to identify and update deployment status without image-to-repo mapping or tag parsing. New inputs: `create-deployment`, `github-token` New output: `deployment-id` (JSON map of environment to deployment ID) Closes CI-1201 Co-Authored-By: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Add an opt-in
create-deploymentboolean input that creates GitHub Deployments on the source repository and writes tracking annotations to the Application CR in the mops overlay.This enables the flux-deployment-reporter to directly identify and update the correct GitHub Deployment without image-to-repo mapping or tag parsing.
New inputs:
create-deployment(boolean, defaultfalse) — no breaking changegithub-token— required whencreate-deploymentistrue, needsdeployments: writepermissionNew output:
deployment-id— JSON map of environment to GitHub Deployment ID (e.g.{"prod-de1": "12345", "prod-us1": "67890"})Behavior when
create-deploymentistrue:in_progresskubernetes/namespaces/<svc>/<env>/<cluster>/...→<env>-<cluster>)deploy.staffbase.com/repo— source repositorydeploy.staffbase.com/sha— full commit SHAdeploy.staffbase.com/deployment-id— GitHub Deployment IDAlso updates README examples to use
actions/checkout@v6,ubuntu-24.04, and[email protected].Closes CI-1201
Checklist
The changes and the PR were generated by Claude.