Closed TomChv closed 1 year ago
https://github.com/dagger/dagger/pull/1966 is merged.
While this is being worked on you can use the --cache-{from,to} type=gha
flags on the dagger do
command as a work around.
This works because buildkit has GHA caching built-in (See TomChv's link in the first comment).
jobs:
publish:
name: "Dagger cache Demo"
runs-on: ubuntu-latest
steps:
- name: "Dagger"
uses: dagger/dagger-for-github@v3
with:
cmds: |
project init
project update
do --cache-from type=gha --cache-to type=gha action
I suppose closed with regard to promote Dagger Cloud? 🤔
When https://github.com/dagger/dagger/pull/1839 will be merged, we should update this action to supports cache option.
In a discussion with @aluzzardi, we talk about the following shape:
That would add
cache
: enable or disable GitHub cache for dagger | set tofalse
by default?cache-scope
: explicit cache scope, useful to do not override existing cache from other action | set todagger
by default?Question Should we also add
mode
option?Useful links