indygreg / python-build-standalone

Produce redistributable builds of Python
Mozilla Public License 2.0
1.97k stars 125 forks source link

Linux Docker images used in GitHub Actions could be cached to avoid rebuilding daily #179

Closed Edward-Knight closed 1 year ago

Edward-Knight commented 1 year ago

This change is designed to help resolve #177, see for more details.

The image builds are unreliable, but we can just build these once and cache them instead of repeatedly rebuilding. The GitHub's Container Registry should work well for this.

indygreg commented 1 year ago

This is implemented in 8c4f5682925169408c02993e53e14960de4df14e. We don't push the full image to GHCR - just the cache. But the cache is sufficient to make CI builds work.

As a follow-up we could probably publish the full image to GHCR and set up the in-repo image build to use it. But I didn't want to cross this bridge because the image caching relies on BuildKit features that a lot of end-users may not have yet.