- TypeScript 88.8%
- Nix 11.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github | ||
| dist | ||
| src | ||
| .gitignore | ||
| .node-version | ||
| .prettierignore | ||
| .prettierrc | ||
| action.yml | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.json | ||
attic-action
Cache Nix derivations with 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:
- 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).
inputs-from
Path to get the Nixpkgs flake input from instead of github:NixOS/nixpkgs/nixpkgs-unstable when installing Attic (optional).
push-args
Additional command-line arguments to pass to attic push (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 <cache> with the paths you want to push to the cache manually.
priority
Nix substituter priority for the Attic cache (optional). When set, the substituter URL in nix.conf will have ?priority=N appended so Nix prefers or deprioritizes this cache relative to others. For example, priority: "30" results in a substituter URL like https://attic.example.com/cache?priority=30.
Outputs
None
License
MIT