mirror of
https://github.com/ryanccn/attic-action.git
synced 2024-11-27 18:04:04 +00:00
Cache Nix derivations on GitHub Actions with Attic.
3114b1f71e
Bumps [DeterminateSystems/nix-installer-action](https://github.com/determinatesystems/nix-installer-action) from 9 to 13. - [Release notes](https://github.com/determinatesystems/nix-installer-action/releases) - [Commits](https://github.com/determinatesystems/nix-installer-action/compare/v9...v13) --- updated-dependencies: - dependency-name: DeterminateSystems/nix-installer-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github | ||
src | ||
.gitignore | ||
.node-version | ||
.prettierignore | ||
.prettierrc | ||
action.yml | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
test.nix | ||
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).
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.
Outputs
None
License
MIT