--- image: nixpkgs/nix:nixos-22.05 stages: - info - check - publish info: stage: info script: - nix --version - nix flake metadata - nix show-config - nix show-derivation 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