-
Notifications
You must be signed in to change notification settings - Fork 11
/
RELEASE.md.erb
47 lines (33 loc) · 954 Bytes
/
RELEASE.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## Release Information
* Release name: `<%= release_name %>`
* Hydra eval: <https://hydra.nixos.org/eval/<%= eval_id %>>
## Usage
### Linux + macOS Systems
```sh
sh <(curl -L <%= server_url %>/<%= repository %>/releases/download/<%= release_name %>/install)
```
### GitHub Actions
Example using Flakes:
```yaml
name: "Example Flake Workflow"
on:
pull_request:
push:
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@<%= install_nix_action_version %>
with:
install_url: <%= server_url %>/<%= repository %>/releases/download/<%= release_name %>/install
- uses: actions/checkout@v3
# Run the general flake checks
- run: nix flake check
# Verify that the main program builds
- run: nix shell -c echo OK
```
### Docker / Podman
```sh
docker run --rm -ti ghcr.io/<%= repository %>/nix:<%= release_name.delete_prefix("nix-") %>
```