Skip to content

invalidate cached app version#3159

Merged
wojcik91 merged 2 commits into
release/2.1from
invalidate_version_cache
Jul 2, 2026
Merged

invalidate cached app version#3159
wojcik91 merged 2 commits into
release/2.1from
invalidate_version_cache

Conversation

@wojcik91

@wojcik91 wojcik91 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Docker caching causes our DEFGUARD_BUILD_VERSION variable to be ignored.
This forces cache invalidation when the value actually changes (in the tagged releases).

@wojcik91 wojcik91 self-assigned this Jul 2, 2026
Comment thread Dockerfile Outdated
# Force BuildKit cache invalidation when the build version changes.
# Without this, the ENV layer gets cached with a stale value and
# the compiled binary won't pick up the correct DEFGUARD_BUILD_VERSION.
RUN echo "Building defguard version: ${DEFGUARD_BUILD_VERSION}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RUN echo "Building defguard version: ${DEFGUARD_BUILD_VERSION}"
RUN echo "Building Defguard version: ${DEFGUARD_BUILD_VERSION}"

@wojcik91 wojcik91 merged commit ff9eeab into release/2.1 Jul 2, 2026
15 checks passed
@wojcik91 wojcik91 deleted the invalidate_version_cache branch July 2, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants