haccfiles/.gitlab-ci.yml
hexchen 260108a586 ci: add nix-instantiate as first step
we don't have to build the whole closure for every system if we already
fail to instantiate it.
2020-11-29 04:00:44 +00:00

8 lines
409 B
YAML

image: nixos/nix:latest
build:
stage: build
script:
- nix-channel --add https://github.com/hexchen/nixpkgs/archive/hexchen-20.09.tar.gz nixos && nix-channel --update && nix-env -i git
- nix-instantiate -I nixpkgs=https://github.com/hexchen/nixpkgs/archive/hexchen-20.09.tar.gz -A deploy.all
- nix-build -A deploy.all -I nixpkgs=https://github.com/hexchen/nixpkgs/archive/hexchen-20.09.tar.gz