Feature/branch builds for preview versions#213
Merged
universe-ops merged 2 commits intomainfrom Apr 7, 2026
Merged
Conversation
smecsia
approved these changes
Apr 7, 2026
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.
Summary
.github/workflows/branch-preview.yaml— a manually triggered (workflow_dispatch) workflow that builds and publishes a fully testable preview release of SC from any feature branch without touching the productionlatestpointersWhat it does
Version: computed using the same
reecetech/version-incrementCalVer logic aspush.yaml(withuse_api: falseto skip tag creation), then suffixed with-preview.{commit_sha}(e.g.2026.04.07.3-preview.abc1234f).SC binaries: built for all 3 platforms with the preview version embedded. Only versioned tarballs (
sc-{os}-{arch}-v{version}.tar.gz) are uploaded todist.simple-container.com—sc.shand theversionfile are deliberately omitted, so no existing user runningsc.shwithout a pin gets the preview version. Users can install it with:Docker image:
simplecontainer/github-actions:{version}is built from the branch and pushed to Docker Hub.latestandstagingtags are not touched.Git tag: a separate
release/{version}branch is created from the current HEAD with all.github/actions/*/action.ymlfiles patched to referencedocker://simplecontainer/github-actions:{version}instead of:staging. A commit is made, taggedv{version}, and pushed — making the SC GitHub Actions usable at that exact version:Build summary: on success, the workflow run's Summary tab shows copy-paste
uses:blocks for all SC actions and the CLI install one-liner.Job parallelism
docker-builddoes not wait forbuild-platforms(the github-actions image doesn't need SC binaries).publish-sc-previewandpublish-git-tagrun in parallel.Known risk
welder deploy -e prodinpublish-sc-preview— if thediststack does a full CDN sync it could deletesc.shwhen it's absent from the preview bundle. Needs runtime validation; tracked in implementation notes.