Skip to content

Commit

Permalink
caps: add cap for gha cache backend
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
  • Loading branch information
tonistiigi committed Mar 22, 2021
1 parent cf84d9f commit 322a69b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions solver/pb/caps.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ const (
CapMetaIgnoreCache apicaps.CapID = "meta.ignorecache"
CapMetaDescription apicaps.CapID = "meta.description"
CapMetaExportCache apicaps.CapID = "meta.exportcache"

CapRemoteCacheGHA apicaps.CapID = "cache.gha"
)

func init() {
Expand Down Expand Up @@ -317,4 +319,10 @@ func init() {
Enabled: true,
Status: apicaps.CapStatusExperimental,
})

Caps.Init(apicaps.Cap{
ID: CapRemoteCacheGHA,
Enabled: true,
Status: apicaps.CapStatusExperimental,
})
}

0 comments on commit 322a69b

Please sign in to comment.