9
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2026-04-27 13:54:28 +00:00

feat: add eStargz compression support for faster image pulls (#1)

- Add estargz boolean input parameter to action.yml
- Modify buildx output arguments to include estargz compression flags when enabled
- Add buildx version check (requires >= 0.10.0) and push requirement validation
- Update README.md with usage examples and documentation
- Requires push: true to be effective
- Compatible with existing output configurations

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Raunak Chowdhuri <raunak@reducto.ai>
This commit is contained in:
devin-ai-integration[bot] 2025-09-18 12:10:49 -07:00 committed by GitHub
parent 4af38cd115
commit 527d67c3c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 62 additions and 2 deletions

View file

@ -100,6 +100,37 @@ jobs:
tags: user/app:latest
```
### eStargz compression for faster pulls
```yaml
name: ci
on:
push:
jobs:
docker:
runs-on: blacksmith
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push with eStargz
uses: useblacksmith/build-push-action@v1
with:
context: .
push: true
tags: user/app:latest
estargz: true
```
## Examples
* [Multi-platform image](https://docs.docker.com/build/ci/github-actions/multi-platform/)
@ -190,6 +221,7 @@ The following inputs can be used as `step.with` keys:
| `target` | String | Sets the target stage to build |
| `ulimit` | List | [Ulimit](https://docs.docker.com/engine/reference/commandline/buildx_build/#ulimit) options (e.g., `nofile=1024:1024`) |
| `github-token` | String | GitHub Token used to authenticate against a repository for [Git context](#git-context) (default `${{ github.token }}`) |
| `estargz` | Bool | Enable [eStargz compression](https://github.com/containerd/stargz-snapshotter/blob/main/docs/estargz.md) for faster image pulls (requires `push: true`) (default `false`) |
### outputs