Skip to content

refactor!: drop GitHub Deployments, rename annotations for Swarmia (CI-1229)#136

Open
0x46616c6b wants to merge 1 commit intomainfrom
feat/CI-1229-remove-github-deployments
Open

refactor!: drop GitHub Deployments, rename annotations for Swarmia (CI-1229)#136
0x46616c6b wants to merge 1 commit intomainfrom
feat/CI-1229-remove-github-deployments

Conversation

@0x46616c6b
Copy link
Copy Markdown
Contributor

@0x46616c6b 0x46616c6b commented May 5, 2026

Type of Change

  • Bugfix
  • Enhancement / new feature
  • Refactoring
  • Documentation

Description

Implements CI-1229 as part of the CI-1228 pivot away from GitHub Deployments toward the Swarmia Deployment API.

Why: flux-deployment-reporter will now call Swarmia directly when a Flux reconciliation completes, using metadata stamped onto the Kustomization by this action. GitHub Deployment objects, deployment statuses, and the deployments: write permission are no longer needed in the source repo.

What changed:

  • The action no longer creates GitHub Deployment objects (the entire actions/github-script step is removed).

  • Inputs create-deployment and github-token are removed; output deployment-id is removed.

  • The annotation block is now unconditional — every file processed by the GitOps update step is stamped with deployment metadata. With create-deployment gone, gating it on a separate flag would just be ceremony.

  • Annotation renames to align with Swarmia API field names:

    Old New
    deploy.staffbase.com/repo deploy.staffbase.com/repositoryFullName
    deploy.staffbase.com/sha deploy.staffbase.com/commitSha
    deploy.staffbase.com/deployment-id removed
  • New annotation deploy.staffbase.com/version carrying the deployed image tag (dev-<short_sha>, main-<short_sha>/master-<short_sha>, or the tag name on tag pushes).

Breaking change. The action's public API loses two inputs and one output, and the annotation keys written into the GitOps repo are renamed. Should be released as a major version bump (v7.xv8.0.0). Downstream consumers passing create-deployment or github-token will see the GitHub Actions "unexpected input" warning but will not fail. The companion change in flux-deployment-reporter (CI-1228) needs to land in lockstep on the new annotation keys.

Checklist

  • Write tests
  • Make sure all tests pass
  • Update documentation
  • Review the Contributing Guideline and sign CLA
  • Reference relevant issue(s) and close them after merging

The changes and the PR were generated by Claude.

…I-1229)

Pivot away from GitHub Deployments (CI-1228): flux-deployment-reporter
will now call the Swarmia Deployment API directly using metadata that
this action stamps onto the Kustomization. Stop creating GitHub
Deployment objects, drop the now-orphaned create-deployment and
github-token inputs and the deployment-id output, rename the surviving
annotations to match the Swarmia API field names, and add a version
annotation carrying the deployed image tag.

Annotation changes:
  deploy.staffbase.com/repo          -> deploy.staffbase.com/repositoryFullName
  deploy.staffbase.com/sha           -> deploy.staffbase.com/commitSha
  deploy.staffbase.com/deployment-id -> removed
  deploy.staffbase.com/version       -> new (image tag)

This is a breaking change to the action's public API and warrants a
major version bump on release.

Co-Authored-By: Claude <claude@anthropic.com>
@0x46616c6b 0x46616c6b marked this pull request as ready for review May 5, 2026 12:40
@0x46616c6b 0x46616c6b requested review from a team as code owners May 5, 2026 12:40
Copy link
Copy Markdown
Contributor

@flaxel flaxel left a comment

Choose a reason for hiding this comment

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

I guess this change makes the action really Staffbase specific. Didn't we want to enable other peeps to use this functionality? 👀

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