actions-setup-docker
actions-setup-docker copied to clipboard
Add cache support or add example
Caching should reduce failures.
I think third party actions supports caching.
In any case this implements caching at MacOS for the docker dmg.
- name: 'SETUP MacOS: load Homebrew cache'
uses: actions/cache@v3
if: runner.os == 'macOS'
with:
path: |
~/Library/Caches/Homebrew/downloads/*--Docker.dmg
key: brew-actions-setup-docker-1.0.11
restore-keys: brew-actions-setup-docker-
I don't know where docker.rb is cached, but since it's stored at GitHub should not make too much difference.
@khs1994 Any chance that this will be added? It currently almost takes 10 minutes to start up docker and sometimes with a failure, so it looks good to me to add caching