From 6875f2957d7990957b9ac910c2d532513641417c Mon Sep 17 00:00:00 2001 From: hexchen Date: Thu, 10 Dec 2020 08:47:33 +0000 Subject: [PATCH] ci: add build from main, split stages properly --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 51bb2a6..38df71f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,31 @@ -build: +stages: + - instantiate + - build + +instantiate 20.09: + tags: + - nix + stage: instantiate + script: + - nix-instantiate -I nixpkgs=https://github.com/hexchen/nixpkgs/archive/hexchen-20.09.tar.gz -A deploy.all + +instantiate main: + tags: + - nix + stage: instantiate + script: + - nix-instantiate -I nixpkgs=https://github.com/hexchen/nixpkgs/archive/hexchen-main.tar.gz -A deploy.all + +build 20.09: tags: - nix stage: build script: - - 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 + +build main: + tags: + - nix + stage: build + script: + - nix-build -A deploy.all -I nixpkgs=https://github.com/hexchen/nixpkgs/archive/hexchen-main.tar.gz