Repository navigation
ci: staging branch rebuilt from the labeled pull requests - #108
Merged
Merged
Conversation
The staging branch is the default branch plus the open pull requests of this repository labeled "staging", rebuilt by the workflow shared from data-fair, built as the image tag "staging" and deployed on the staging environment. The build accepts a ref, an image tag and the staging pull requests, written into BUILD.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This pull request is labeled |
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.
The staging environment will follow a
stagingbranch instead of the default branch's image tag. That branch is regenerated at every change: the default branch plus the open pull requests of this repository labeledstaging. It is the same setup as in data-fair and events..github/workflows/staging.ymlcalls the rebuild shared from data-fair (data-fair/data-fair/.github/workflows/staging-rebuild.yml@master). That rebuild merges the labeled pull requests and force-pushesstaging, and it comments on the ones left out (a conflict, or changes to workflow files). This workflow then builds the returned commit throughreuse-build.yml: the image is taggedstagingand gets a Keel notification.reuse-build.ymlaccepts optionalref,tagandpull-requestsinputs, and writesBUILD.jsonwithjq. A staging build addsbaseCommit,pullRequestsandexcludedPullRequeststo it, which data-fair's services page shows./admin/infoalready returnsBUILD.jsonas is.commits.ymlno longer builds thestagingbranch.Why: pull requests that need the team's validation can stay drafts, be labeled
stagingand be validated on the staging environment before they are merged.Validation: this pull request is labeled
staging. That runs its ownstaging.yml, which leaves the pull request itself out (it changes workflow files) and builds and tags the default branch asstaging. The staging environment does not follow that tag yet.Heads-up:
commits.ymlchanges frombranches: ['*']tobranches-ignore: [staging], so branches with a/in their name are now built too.reuse-build.ymlis also used by release builds. With no inputs its behaviour is unchanged.🤖 Generated with Claude Code