CI: pull shared build image instead of building locally#15
Merged
Conversation
Both deploy and release workflows used to buildx the TeX Live image on every job, with gha cache smoothing over the worst of it. That cache is scoped per-repo, so fresh branches paid ~13 min to install texlive-full from scratch. Switch to pulling ghcr.io/tamnd/beej-vi-docker:latest, a shared image maintained in tamnd/beej-vi-docker. Cold pull is ~30 s, no gha cache bookkeeping, no Dockerfile.vi to keep in sync across translation repos.
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.
Summary
Dockerfile.vibuild withdocker pull ghcr.io/tamnd/beej-vi-docker:latestin bothdeploy.ymlandrelease.yml.Dockerfile.vifrom this repo. The image now lives in tamnd/beej-vi-docker and is shared across all translation repos.scripts/build_vi_docker.shto pull the shared image rather than build locally.Why
The previous setup rebuilt the same
texlive-fullimage in every Beej translation repo.cache-from: type=ghahelped after the first run on a branch, but:texlive-fullinstall.Dockerfile.viin sync across bgnet-vi, bgc-vi, and any future translation repo was a copy-paste chore.Now every guide pulls one shared image. Cold pull is ~30 seconds; warm is a layer cache hit.
Test plan
buildjob on this PR completes without the old buildx / build-push-action steps