Skip to content

publish the deployment manifests as an artifact with each image - #101

Merged
StBozov merged 1 commit into
mainfrom
publish-the-manifests-with-the-image
Nov 1, 2026
Merged

StBozov merged 1 commit into
mainfrom
publish-the-manifests-with-the-image

Conversation

@StBozov

@StBozov StBozov commented Nov 1, 2026

Copy link
Copy Markdown
Member

Slice S0: make a merge to main deliver 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 in kustomization.yaml is a known-good default.
  • .github/workflows/ci.yml, in the image job:
    • on every pull request: check that the manifests render (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.
    • on a merge to main, after the image is pushed: set the new tag in a runner-local copy of the manifests, push ghcr.io/textyly/crossly-ui-manifests:<build tag> as an OCI artifact, and move the main tag to it. The tag is only edited in the copy, never committed.

Checked locally: actionlint is clean and the manifests render. The exact flux push artifact, flux tag artifact and flux pull artifact commands were rehearsed against a throwaway local registry: the build tag and main resolve 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.

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>
@StBozov
StBozov merged commit 718605e into main Nov 1, 2026
2 checks passed
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