Repository navigation
publish the deployment manifests as an artifact with each image - #101
Merged
Merged
Conversation
Move the UI's Kubernetes manifests into this repository so the manifests and the image they run are built from the same commit. On a merge to main, CI sets the new image tag in a copy of the manifests, pushes them to the GitHub Container Registry as an OCI artifact tagged with the build tag, and moves the main tag to it. Pull requests check that the manifests render and package without publishing anything. Part of textyly/crossly#1. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Slice S0: make a merge to
maindeliver both the image and the manifests that run it.Why: the manifests used to live in a different repository from the code that builds the image, so a UI merge produced a new image but nothing told a cluster to use it. Keeping them side by side means one commit produces one consistent, versioned deployment.
What changes
deploy/k8s/: the UI's Deployment, Service, Ingress and kustomization, moved here unchanged apart from being comment-free. The image tag inkustomization.yamlis a known-good default..github/workflows/ci.yml, in theimagejob:kubectl kustomize) and package (flux build artifact), so a broken manifest is caught before merge. The Flux CLI is pinned by commit SHA to v2.10.0.main, after the image is pushed: set the new tag in a runner-local copy of the manifests, pushghcr.io/textyly/crossly-ui-manifests:<build tag>as an OCI artifact, and move themaintag to it. The tag is only edited in the copy, never committed.Checked locally:
actionlintis clean and the manifests render. The exactflux push artifact,flux tag artifactandflux pull artifactcommands were rehearsed against a throwaway local registry: the build tag andmainresolve to the same digest, and the pulled artifact renders with the new image tag while the repository file is unchanged.Expected on merge: the first run publishes the first artifact. The new package is created private and needs making public once, as the image did.
Part of textyly/crossly#1.