Skip to content

Decouple website build from build-image to reduce CI feedback loop #7342

@friedrichg

Description

@friedrichg

Problem

The Cortex documentation website build is currently coupled to the build-image Docker container. The build image bundles Hugo, Node.js, postcss-cli, and autoprefixer (see build-image/Dockerfile lines 6-11, 28-36, 38).

Rebuilding the build image takes ~80 minutes (see #7339). Any change to website tooling (Hugo version, Node.js version, PostCSS dependencies) requires a full image rebuild, blocking all CI until the new image is available.

Additionally:

Proposal

Extract the website build into a standalone GitHub Actions job that uses actions/setup-go, actions/setup-node, and a direct Hugo binary download instead of the build image. This:

  1. Eliminates the 80-minute rebuild cycle for website tooling changes
  2. Makes package-lock.json meaningful via npm ci
  3. Allows removing Node.js/Hugo from the build image, making it smaller and faster to build
  4. Enables independent Dependabot updates for website dependencies

Related

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions