Skip to content

build: release builds read a stale :latest cache and never refresh it #20

Description

A release build never refreshes the build cache it reads. The Makefile always reads the cache from $(IMAGE):latest (--cache-from type=registry,ref=$(IMAGE):latest), but the inline cache is written only into the image that gets pushed, $(IMAGE):$(TAG). A release runs with TAG=vX.Y.Z, so :latest is left alone.

The registry shows it. ghcr.io/cozystack/cozystack/cozy-proxy:latest was created on 2025-08-19, and :v0.3.0 on 2026-04-28. So the v0.3.0 build read its cache from an image eight months older, built before the Go toolchain and dependency bumps.

Two ways out: also push :latest on a release, or read the cache from $(IMAGE):$(TAG) and fall back to the previous tag. Dropping --cache-from is fine too, since the build is small.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions