This commit is contained in:
zimbatm
2019-01-19 00:04:11 +01:00
commit b44f7f85f3
16 changed files with 302 additions and 0 deletions

30
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,30 @@
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}"