feat: caching

This commit is contained in:
Julien Goux
2026-04-10 11:53:47 +02:00
parent 60819041ae
commit 9da7121816
13 changed files with 168652 additions and 38 deletions

View File

@@ -37,6 +37,21 @@ To pin a specific CLI version:
version: 2.84.2
```
To cache the Docker images pulled by `supabase start`:
```yaml
- uses: supabase/setup-cli@v2
with:
version: 2.84.2
cache: true
- run: supabase start
```
The first run pulls the images from the registry. Later runs can restore the
same image archive from the GitHub Actions cache before `supabase start` runs.
Use `cache-key` when your workflow flags or generated config change the image
set.
## Resources
- **Source Code**: <https://github.com/supabase/setup-cli>