nixos-generators/.included.yml

30 lines
755 B
YAML
Raw Permalink Normal View History

2019-12-01 23:12:02 +03:00
stages:
- build
.tar_option:
after_script:
2019-12-05 02:44:55 +03:00
- tar -cvhf $uploadPath.tar ./$uploadPath
artifacts:
name: "$uploadPath"
paths:
2019-12-05 02:44:55 +03:00
- $uploadPath.tar
2019-12-01 23:12:02 +03:00
.template:
only:
- web
stage: build
image: lnl7/nix:latest
2019-12-01 23:12:02 +03:00
before_script:
- nix --version
- chmod +w /etc/nix/nix.conf
- echo "system-features = kvm" >> /etc/nix/nix.conf
- sed -i -e 's/ --no-out-link//g' nixos-generate
- mkdir $uploadPath
2019-12-01 23:12:02 +03:00
script:
- nix-shell --command './nixos-generate -f $formats -I nixpkgs=channel:nixos-$nixpkgs_ver' |& tee $uploadPath/build.log
- mv $(realpath result) $uploadPath
2019-12-01 23:12:02 +03:00
artifacts:
name: "$uploadPath"
2019-12-01 23:12:02 +03:00
paths:
2019-12-05 02:44:55 +03:00
- $uploadPath