https://github.com/mlabs-haskell/push-cache-effect
Demo showing how to use HerculesCi effect to push to an external cache.
https://github.com/mlabs-haskell/push-cache-effect
Last synced: over 1 year ago
JSON representation
Demo showing how to use HerculesCi effect to push to an external cache.
- Host: GitHub
- URL: https://github.com/mlabs-haskell/push-cache-effect
- Owner: mlabs-haskell
- Created: 2023-12-18T17:50:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-30T18:21:28.000Z (over 2 years ago)
- Last Synced: 2025-01-23T01:19:50.304Z (over 1 year ago)
- Language: Nix
- Size: 13.7 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# push-cache effect
## Overview
Repository shows how to push some paths to a specified cache with hercules effect.
We use a flake-parts module called `push-cache-effect`. For option definitions check source at [TODOLINK](https://github.com/zmrocze/hercules-ci-effects/blob/3fa860ba2b1fe6a2c5e45684f015dc441b9cc202/effects/push-cache/default.nix).
## Secrets
You need to configure HerculesCI agent providing it with a secret, so that it can access the cache. Check module option docs in hercules-ci-effects ([link1](https://github.com/zmrocze/hercules-ci-effects/blob/3fa860ba2b1fe6a2c5e45684f015dc441b9cc202/effects/push-cache/default.nix), [link2]) for secret's format. For mlabs ask devops to do it.
Example `secret.json`:
```json
{
"attic-test-token": {
"condition" : {
"and" : [
]
},
"data": {
"name": "cache-name",
"endpoint": "https://cache.staging.mlabs.city/",
"token": "my_push_token"
},
"kind": "Secret"
},
}
```