Skip to content

Enable caching when building CentOS container - #656

Merged
marcin-krystianc merged 4 commits into
masterfrom
dev-20260521-docker-cache
May 22, 2026
Merged

Enable caching when building CentOS container#656
marcin-krystianc merged 4 commits into
masterfrom
dev-20260521-docker-cache

Conversation

@marcin-krystianc

@marcin-krystianc marcin-krystianc commented May 21, 2026

Copy link
Copy Markdown
Contributor

Fixes #649

Move the Linux CI build container setup from inline docker exec commands into a dedicated Dockerfile (.github/ci-build/Dockerfile) and use docker/build-push-action with GitHub Actions cache (type=gha) to cache the Docker image layers. This avoids reinstalling the toolchain (devtoolset, bison, ninja, etc.) on every CI run, speeding up the Linux build steps.

@marcin-krystianc
marcin-krystianc force-pushed the dev-20260521-docker-cache branch from c115773 to b38857d Compare May 21, 2026 09:10
@marcin-krystianc
marcin-krystianc force-pushed the dev-20260521-docker-cache branch from d69341b to 661900a Compare May 21, 2026 09:51
@marcin-krystianc
marcin-krystianc force-pushed the dev-20260521-docker-cache branch from cdb1bc6 to 330973d Compare May 21, 2026 09:55
@marcin-krystianc
marcin-krystianc marked this pull request as ready for review May 21, 2026 10:01

@adamreeve adamreeve left a comment

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.

Thanks Marcin, this looks good to me. Just one minor suggestion.

Comment thread .github/ci-build/Dockerfile Outdated
Co-authored-by: Adam Reeve <adam.reeve@gr-oss.io>
@marcin-krystianc
marcin-krystianc merged commit ff5b7b4 into master May 22, 2026
61 checks passed
@marcin-krystianc
marcin-krystianc deleted the dev-20260521-docker-cache branch May 22, 2026 08:44
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.

Use cached docker images for Linux CI builds

2 participants