prepare for multi-CI
split things out so more can be shared between CIs
This commit is contained in:
parent
7a8122c5f4
commit
6b517528ee
7 changed files with 53 additions and 45 deletions
|
@ -2,31 +2,17 @@ image: nixos/nix:latest
|
|||
|
||||
stages:
|
||||
- build
|
||||
- publish
|
||||
|
||||
before_script:
|
||||
- nix-shell --run .gitlab/docker-login
|
||||
|
||||
nixos-unstable:
|
||||
extends: .build
|
||||
stage: build
|
||||
script: nix-shell --run ./.gitlab-ci.sh
|
||||
variables:
|
||||
NIXPKGS_CHANNEL: nixos-unstable
|
||||
NIX_PATH: nixpkgs=channel:nixos-unstable
|
||||
IMAGE_TAG: latest
|
||||
|
||||
nixos-18.09:
|
||||
extends: .build
|
||||
variables:
|
||||
NIXPKGS_CHANNEL: nixos-18.09
|
||||
IMAGE_TAG: nixos-18.09
|
||||
|
||||
# ---- templates ---
|
||||
|
||||
.build:
|
||||
stage: build
|
||||
script:
|
||||
- nix-shell --run ./build
|
||||
- nix-shell --run .gitlab/push-master
|
||||
script: nix-shell --run ./.gitlab-ci.sh
|
||||
variables:
|
||||
NIX_PATH: "nixpkgs=channel:${NIXPKGS_CHANNEL}"
|
||||
REGISTRY_URL: "${CI_REGISTRY_IMAGE}"
|
||||
|
||||
NIX_PATH: nixpkgs=channel:nixos-18.09
|
||||
IMAGE_TAG: nixos-18.09
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue