2024-06-16 21:26:31 -06:00
2024-06-16 21:26:31 -06:00
2024-06-16 20:52:16 -06:00
2023-07-19 10:37:21 +08:00
2023-10-25 23:20:59 +08:00
2023-07-19 02:51:10 +00:00
2023-09-15 15:37:51 +08:00
2023-07-21 21:42:33 +08:00
2023-07-18 22:17:42 +08:00
2023-09-15 15:37:51 +08:00
2023-09-15 15:37:51 +08:00
2023-07-21 16:11:50 +08:00
2023-07-19 02:51:10 +00:00

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

Description
Cache Nix derivations on GitHub Actions with Attic.
Readme 314 KiB
Release Latest
2024-06-16 20:12:51 -07:00
Languages
TypeScript 79%
Nix 21%