https://github.com/ryanccn/attic-action
Cache Nix derivations on GitHub Actions with Attic.
https://github.com/ryanccn/attic-action
attic cache ci ci-cd github-actions github-actions-cache nix nix-flake
Last synced: 12 days ago
JSON representation
Cache Nix derivations on GitHub Actions with Attic.
- Host: GitHub
- URL: https://github.com/ryanccn/attic-action
- Owner: ryanccn
- License: mit
- Created: 2023-07-18T14:17:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-22T05:14:45.000Z (about 1 month ago)
- Last Synced: 2025-04-06T04:45:01.200Z (20 days ago)
- Topics: attic, cache, ci, ci-cd, github-actions, github-actions-cache, nix, nix-flake
- Language: TypeScript
- Homepage:
- Size: 624 KB
- Stars: 38
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# attic-action
Cache Nix derivations with [Attic](https://github.com/zhaofengli/attic).
## Usage
Configure your Attic instance with an endpoint, a cache, and a token that can read from and write to the cache. Then, add this step to a workflow job after Nix is installed:
```yaml
- name: Setup Attic cache
uses: ryanccn/attic-action@v0
with:
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
cache: ${{ secrets.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
```## Inputs
### `endpoint`
The Attic endpoint. This is the URL without the cache name.
### `cache`
The name of the Attic cache.
### `token`
The authorization token to provide to Attic (**optional**).
### `skip-push`
Disable pushing new derivations to the cache automatically at the end of the job (**default is false**).
This requires you to invoke `attic push ` with the paths you want to push to the cache manually.
## Outputs
None
## License
MIT