feat(updates): add container release mode support - #691
Open
chbndrhnns wants to merge 1 commit into
Open
Conversation
- add imageTemplate to ReleaseSource schema and renderImageTemplate helper - support release drift evaluation for projects with releaseSource or container images - support container release deployments in applyReleaseSourceToSnapshot without requiring tarball dists - add unit tests for image template rendering, container release drift, and deployment snapshot handling
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
Extends OpenShip's release drift and deployment engines to support container image release tracking for projects that consume prebuilt Docker images from upstream GitHub releases (e.g.
ghcr.io/org/repo:tag).Fixes #694
Details
ReleaseSource& Image Templating:imageTemplatetoReleaseSourceinterface and schema.renderImageTemplate(template, { version, tag? })in@repo/coreto substitute{version}/{tag}placeholders, or update the image tag portion when no placeholders are present.apps/api):"release"drift mode whenisReleaseProvider(p.gitProvider) || Boolean(p.releaseSource).imageTemplateso template updates invalidate cached drift.deployment.releaseVersionis unset.apps/api):applyReleaseSourceToSnapshot, detects container release mode (source.imageTemplate,snapshot.buildImagewithout tarball templates,sourceKind === "image", orbuildKind === "prebuilt"), renders the target image ref, setssnapshot.buildImageandsnapshot.releaseVersion, and skips tarball dist downloads.preflight.ts, allows container release deployments to pass without requiring a repository URL or local directory.packages/core/test/project-source.test.ts.apps/api/test/modules/updates/drift-evaluation.test.ts.apps/api/test/modules/deployments/container-release-deploy.test.ts.