Repository navigation
feat(serving): serve doc.yarilomail.org from the cluster - #281
Merged
Merged
Conversation
Contributor
Author
|
|
Contributor
Author
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.
GitHub Pages refuses the deployments (
deployment_failed, no detail) whilegh-pagesitself is published fine. This servesgh-pagesfrom the cluster that already runs yarilomail.org.helm/: nginx (nginx:1.28-alpine) plus a sidecar (alpine:3.24) that installs git (apk upgradethenapk add git, exiting so the container restarts if that fails), pullsgh-pagesevery 60 s into/site/<commit>and points/site/currentat it, keeping the previous checkout until the next lands. No image to build and no rollout per merge: the workflow already rewritesgh-pages.dirtodir/and an extensionless page to.htmlby relative 301, root404.htmlwith status 404,assets/cached for a year,/healthzready once a checkout is in place.CF-Connecting-IPonly fromrealIp.trustedProxies(prod: the pod network10.1.0.0/16), JSON access log.doc.yarilomail.org, Cloudflare ranges only,letsencrypt-prod, secretdoc-yarilomail-org-tls, labelcloudflare-whitelist: "true"so the cluster's cf-whitelist CronJob keeps the ranges current; namespaceyarilomail.argocd-app.yaml: applicationyarilo-docsfrommain,ignoreDifferenceson the whitelist annotation withRespectIgnoreDifferences=true.Checked on a scratch namespace (since removed): sync served gh-pages 31b5af1;
/,/main/,/latest/,/2.4.6/...,/AUTH_OAUTH2.html,/main/relay/dkim_milter.html200;/mainand/main/relay/dkim_milter301; missing pages 404;llms.txtutf-8; assets immutable; log showsCF-Connecting-IPfrom a trusted peer and the peer itself without it.helm lint,docs:build.After merge: apply
argocd-app.yamlon the cluster; the certificate is issued oncedoc.yarilomail.orgpoints at the cluster in Cloudflare. The Pages deploy job stays until then and goes in a follow-up PR withsite-root/CNAME(indexnow then depends on build only).