Spin up a local Github artifact cache server to be used with act Github actions that uses actions/cache
export ACT_CACHE_AUTH_KEY=foo$env:ACT_CACHE_AUTH_KEY = 'foo'setx ACT_CACHE_AUTH_KEY foodocker compose up --build
Ensure you add the following configuration to your ~/.actrc file:
--env ACTIONS_CACHE_URL=http://127.0.0.1:8080/
--env ACTIONS_RUNTIME_URL=http://127.0.0.1:8080/
--env ACTIONS_RUNTIME_TOKEN=foo
ACT_CACHE_AUTH_KEY and ACTIONS_RUNTIME_TOKEN to the value you want, but they must be the samedocker-compose) so it will survive between containers/_apis/artifactcache/clean. ie
curl -X POST -H 'Authorization: Bearer foo' 'http://127.0.0.1:8080/_apis/artifactcache/clean'Invoke-WebRequest -Method POST -Headers @{"Authorization"="Bearer foo"} -Uri "http://127.0.0.1:8080/_apis/artifactcache/clean"curl -X POST -H "Authorization: Bearer foo" "http://127.0.0.1:8080/_apis/artifactcache/clean"GITHUB_REPOSITORY, GITHUB_REF or GITHUB_BASE_REF so it can do a better job restoring fallback caches or switching branchesJavaScript
98.0%
Dockerfile
2.0%
Spin up a local Github artifact cache server to be used with act Github actions that uses actions/cache
export ACT_CACHE_AUTH_KEY=foo$env:ACT_CACHE_AUTH_KEY = 'foo'setx ACT_CACHE_AUTH_KEY foodocker compose up --build
Ensure you add the following configuration to your ~/.actrc file:
--env ACTIONS_CACHE_URL=http://127.0.0.1:8080/
--env ACTIONS_RUNTIME_URL=http://127.0.0.1:8080/
--env ACTIONS_RUNTIME_TOKEN=foo
ACT_CACHE_AUTH_KEY and ACTIONS_RUNTIME_TOKEN to the value you want, but they must be the samedocker-compose) so it will survive between containers/_apis/artifactcache/clean. ie
curl -X POST -H 'Authorization: Bearer foo' 'http://127.0.0.1:8080/_apis/artifactcache/clean'Invoke-WebRequest -Method POST -Headers @{"Authorization"="Bearer foo"} -Uri "http://127.0.0.1:8080/_apis/artifactcache/clean"curl -X POST -H "Authorization: Bearer foo" "http://127.0.0.1:8080/_apis/artifactcache/clean"GITHUB_REPOSITORY, GITHUB_REF or GITHUB_BASE_REF so it can do a better job restoring fallback caches or switching branchesJavaScript
98.0%
Dockerfile
2.0%