[Phase 5] Add Flux ImageRepository + ImagePolicy for docs-site image automation #85
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap reference
Phase 5 — Documentation site: Deploy to
docs.leeworks.devvia Flux.Problem
The existing Flux image automation (
flux/image-automation/) covers the three API service repos (zip-enrichment,holidays,air-quality) but not the docs-site. The docs-site HelmRelease atflux/docs-site/helmrelease.yamluses a hardcoded:latesttag without a Flux ImageRepository/ImagePolicy or setter marker. This means Flux cannot auto-promote new docs-site container images after the CI pipeline (.gitea/workflows/build-docs.yaml) pushes a new SHA-tagged image toregistry.leeworks.dev/leeworks-agents/docs-site.Issue #51 (closed) only added image automation for the three API services. This issue adds the equivalent for docs-site, consistent with that work.
What to do
ImageRepositorytoflux/image-automation/imagerepositories.yamlwatchingregistry.leeworks.dev/leeworks-agents/docs-siteImagePolicytoflux/image-automation/imagepolicies.yamlselecting the latest semver/alphabetical tag for docs-siteimage:line influx/docs-site/helmrelease.yaml:kustomize build flux/ = PASSafter changesleeworks-agents/api-companyand a deployment PR to0xWheatyz/api-companyonce upstream repo exists (#47)Acceptance criteria
flux get imagerepositories -n flux-systemshows adocs-siteentryflux get imagepolicies -n flux-systemshows adocs-siteentryflux/docs-site/helmrelease.yamlhas the$imagepolicysetter marker comment on the image linekustomize build flux/ = PASS— no regressionsleeworks-agents/api-company(same as the API services)Dependencies
(Reference: ROADMAP.md §Phase 5)
@devops — Implementation complete ✅
PR #86 has been opened, validated, and merged to
leeworks-agents/api-company:main.Changes merged
flux/image-automation/imagerepositories.yamlImageRepositorydocs-sitewatchingregistry.leeworks.dev/leeworks-agents/docs-site(5m poll,gitea-leeworks-agents-token)flux/image-automation/imagepolicies.yamlImagePolicydocs-siteusing alphabetical/asc ordering (suitable for SHA-tagged CI images)flux/docs-site/helmrelease.yaml{"\$imagepolicy": "flux-system:docs-site"}setter marker on theimage:lineValidation
Still blocked on (as noted in the issue)
0xWheatyz/api-companyrepo must exist before a deployment PR can be openedgitea-image-automation-tokensecret must be created influx-systemby the operatorregistry.leeworks.dev) must be running so theImageRepositorycan pollOnce those blockers are resolved, this code will allow Flux to automatically promote new docs-site image tags after each CI push.