Skip to content

fix(docker): reference FRONTEND_CACHE_BUST so the frontend clone actually busts cache - #172

Merged
hweej merged 1 commit into
mainfrom
fix/frontend-cache-bust
Jul 29, 2026
Merged

fix(docker): reference FRONTEND_CACHE_BUST so the frontend clone actually busts cache#172
hweej merged 1 commit into
mainfrom
fix/frontend-cache-bust

Conversation

@hweej

@hweej hweej commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

The Dockerfile declared ARG FRONTEND_CACHE_BUST but the frontend git clone --branch main layer never referenced it. In BuildKit an arg only invalidates a layer when that layer uses it, so the clone stayed cache-hit across builds and baked a stale frontend — meaning frontend-only changes never actually shipped in a new image (and ci.yml's existing FRONTEND_CACHE_BUST arg was a no-op).

  • Dockerfile: reference $FRONTEND_CACHE_BUST in the clone RUN so a changed value forces a fresh clone.
  • release.yml: pass FRONTEND_CACHE_BUST=${{ github.run_id }} in the docker build-args (ci.yml already does).

No version bump (releases are manual-dispatch). Merging this triggers ci.yml to rebuild the image (:sha-<sha> + :latest) with the current frontend main.

…ally busts cache

The Dockerfile declared FRONTEND_CACHE_BUST but never referenced it, so BuildKit
kept the 'git clone --branch main' layer cached across builds and baked a stale
frontend. Reference the arg in the clone RUN so a changed value forces a fresh
clone, and pass FRONTEND_CACHE_BUST in release.yml's docker build (ci.yml already
passes it).
@hweej hweej self-assigned this Jul 29, 2026
@hweej hweej added the docker Dockerfiles and container builds label Jul 29, 2026
@hweej
hweej merged commit ea709af into main Jul 29, 2026
3 checks passed
@hweej
hweej deleted the fix/frontend-cache-bust branch July 29, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Dockerfiles and container builds

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant