Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker/build-push-action now supports caching #57

Open
mendhak opened this issue Apr 7, 2024 · 0 comments
Open

docker/build-push-action now supports caching #57

mendhak opened this issue Apr 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mendhak
Copy link
Collaborator

mendhak commented Apr 7, 2024

FWIW, it seems Docker's build-push-action now supports caching using the Github Cache API. Currently it's experimental but seems to work well in the little testing I've done.

It's just two arguments to the action, cache-from and cache-to.

    - name: Build and push
        uses: docker/build-push-action@v5
        with:
          context: .
          push: true
          tags: user/app:latest
          cache-from: type=gha
          cache-to: type=gha,mode=max

Could be worth a look.

@mendhak mendhak added the enhancement New feature or request label Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant