blob: f3376ba2476e677c34d656d7d3c58ad82c99aabd (
plain) (
blame)
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
|
---
image: nixpkgs/nix-flakes:nixos-22.05
stages:
- info
- check
- publish
info:
stage: info
script:
- nix --version
- nix show-config
- nix show-derivation
- nix flake metadata
check:
stage: check
script:
- nix flake check --show-trace
publish:
stage: publish
script:
- set -o pipefail
- nix build --print-build-logs --show-trace --json |
nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' |
nix run nixpkgs#cachix -- push $CACHIX_CACHE_NAME
|