build: use unique hash for alpine-base bootstrap to avoid cache collisions#5747
Merged
eriknordmark merged 1 commit intolf-edge:masterfrom Apr 4, 2026
Merged
Conversation
386b5e7 to
8678ea8
Compare
eriknordmark
approved these changes
Apr 4, 2026
Add a workflow_dispatch workflow that builds and pushes eve-alpine-base for all three platforms (amd64, arm64, riscv64), then automatically rebuilds eve-alpine with the new hash. The workflow uses a unique hash (content-hash + git-short-rev) to avoid cache collisions when the Dockerfile content hasn't changed but the image needs rebuilding (e.g. after Alpine point releases). Pipeline: build alpine-base (3 arches) → manifest → commit new hash → build eve-alpine (3 arches) → manifest. Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
8678ea8 to
8630378
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a
workflow_dispatchworkflow that builds and pusheseve-alpine-basefor all three platforms (amd64, arm64, riscv64), then automatically rebuildseve-alpinewith the new hash.The workflow uses a unique hash (
content-hash-git-short-rev) to avoid cache collisions when the Dockerfile content hasn't changed but the image needs rebuilding (e.g. after Alpine point releases).The
eve-alpinebuild step uses--disable-cacheto prevent linuxkit from reusing a potentially stale local cache that may reference the oldalpine-baseimage with fewer platforms.Pipeline:
alpine-basefor amd64/arm64/riscv64 (with--force+ unique hash)alpine-basepkg/alpine/Dockerfileeve-alpinefor amd64/arm64/riscv64 (with--force --disable-cache)eve-alpineHow to test and validate this PR
pkg/alpine/DockerfileTested on https://github.com/rene/eve fork with
mikemzed/images.Changelog notes
No user-facing changes.
PR Backports
Checklist
I've provided a proper description
I've written the test verification instructions
I've set the proper labels to this PR
I've checked the boxes above, or I've provided a good reason why I didn't
check them.