Skip to content

Conversation

@jose-fully-ported
Copy link
Contributor

What does this PR do?

Buildkit builds expose custom cache exporters which can be used to locally speed up builds on Github Actions. The gha cacher will use the Github Actions cache api instead of the remote registry for caching.

To enable this, set the following two environment variables.

DOCKER_BUILDKIT=1
BUILDKIT_CACHE_EXPORTER=gha

Note that the cache mode is set to min by default (no value == min) due to a potential timeout issue within the exporter. See moby/buildkit#2276 for details. To switch the cache mode, set the following environment variable:

BUILDKIT_CACHE_MODE=max

@jose-fully-ported jose-fully-ported force-pushed the jose-fully-ported/docker-gha-cache branch from 289fd41 to 3cac8d1 Compare December 14, 2023 16:46
Buildkit builds expose custom cache exporters which can be used to locally speed up builds on Github Actions. The gha cacher will use the Github Actions cache api instead of the remote registry for caching.

To enable this, set the following two environment variables.

```
DOCKER_BUILDKIT=1
BUILDKIT_CACHE_EXPORTER=gha
```

Note that the cache mode is set to min by default (no value == min) due to a potential timeout issue within the exporter. See moby/buildkit#2276 for details. To switch the cache mode, set the following environment variable:

```
BUILDKIT_CACHE_MODE=max
```
@jose-fully-ported jose-fully-ported force-pushed the jose-fully-ported/docker-gha-cache branch from 3cac8d1 to fb11958 Compare December 14, 2023 17:11
@jose-fully-ported jose-fully-ported requested review from ferozemohideen and removed request for ferozemohideen December 15, 2023 02:55
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