docker-nixpkgs/.gitlab-ci.yml
2019-01-19 15:13:30 +01:00

30 lines
527 B
YAML

image: nixos/nix:latest
stages:
- build
- publish
before_script:
- nix-shell --run .gitlab/docker-login
nixos-unstable:
extends: .build
variables:
NIXPKGS_CHANNEL: nixos-unstable
nixos-18.09:
extends: .build
variables:
NIXPKGS_CHANNEL: nixos-18.09
# ---- templates ---
.build:
stage: build
script:
- nix-shell --run ./build
- nix-shell --run .gitlab/push-master
variables:
NIX_PATH: "nixpkgs=channel:${NIXPKGS_CHANNEL}"
REGISTRY_URL: "${CI_REGISTRY_IMAGE}/${NIXPKGS_CHANNEL}"