Release process
A release is a version tag vX.Y.Z and the artifacts built from it:
| Artifact | Reference |
|---|---|
| API server image | ghcr.io/idekube-project/idekube-platform-apiserver:vX.Y.Z |
| Frontend image | ghcr.io/idekube-project/idekube-platform-frontend:vX.Y.Z |
| Helm chart | oci://ghcr.io/idekube-project/charts/idekube-platform, version X.Y.Z |
idk | Assets of the GitHub release: idk_vX.Y.Z_<os>_<arch> for linux, darwin and windows (.exe) on amd64 and arm64, and their checksums.txt |
The images are built for linux/amd64 and linux/arm64. The chart's version is the tag without the v; its appVersion is the tag, which is also the default image tag, so a chart version always deploys the images of the same release.
Publishing
Publishing a GitHub release for the tag runs the release workflow, which:
- builds both images with
docker buildx bakeand pushes them, also aslatestunless the release is a pre-release; - packages the chart with
make chartand pushes it withhelm push; - builds
idkfor each system and attaches it to the release, with the SHA-256 sums inchecksums.txt.
The workflow can also be started manually with a version; it then builds idk but attaches it to nothing.
By hand
The same steps from a checkout of the tag, after docker login ghcr.io and helm registry login ghcr.io:
make images.push VERSION=v1.2.3
make chart VERSION=v1.2.3
helm push dist/idekube-platform-1.2.3.tgz oci://ghcr.io/idekube-project/charts
The version is baked into the API server image and reported by GET /v1/meta.
Before tagging
make fmt lint testpasses andmake gen.checkreports nothing stale.- New schema changes have a migration that the previous release can run against during a rolling upgrade.
E2E_ALL=1 make e2epasses against amake minikube.upinstallation with the development services, Canvas and a second worker.
Websites
The project's site at idekube.io and this documentation are Cloudflare Workers that serve static files. Cloudflare's Workers Builds pulls this repository and deploys a Worker when a commit that changes its directory reaches main; a commit on another branch is built as a preview, at a URL of its own. A Worker's wrangler.jsonc, in its directory, names it and says which files it serves and on which domains.
| Worker | Directory | Domains | Build command | Build watch paths |
|---|---|---|---|---|
idekube-landing | sites/landing/ | idekube.io, www.idekube.io | none: public/ is served as it is | sites/landing/* |
idekube-docs | docs/ | docs.idekube.io | pnpm build | docs/* |
To connect one, in the Cloudflare account that holds the idekube.io zone: Workers & Pages, Create application, then the GitHub repository. Name the Worker as its wrangler.jsonc does, or its builds fail; set the root directory to its directory, the build command, and the deploy command npx wrangler deploy. Under the Worker's Settings, Build, set the build watch paths and enable preview builds. Cloudflare installs the dependencies with the pnpm of package.json's packageManager. The first deployment adds the Worker's domains, with their DNS records and certificates; a hostname that already has a CNAME record must be freed first.
By hand, after pnpm exec wrangler login: pnpm install && pnpm build && pnpm exec wrangler deploy in docs/, pnpm install && pnpm exec wrangler deploy in sites/landing/.