actions-setup-docker icon indicating copy to clipboard operation
actions-setup-docker copied to clipboard

Add cache support or add example

Open mshima opened this issue 2 years ago • 1 comments

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.

mshima avatar Aug 10 '22 22:08 mshima

@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

Jasperav avatar Sep 21 '22 08:09 Jasperav