nix/.drone.yml
Sijmen 859c1cab51
All checks were successful
continuous-integration/drone/push Build is passing
run nas and thinkpad in parallel
2022-08-07 23:36:32 +02:00

34 lines
1.1 KiB
YAML

---
kind: pipeline
name: default
steps:
- name: thinkpad
image: nixos/nix:latest
depends_on: [clone]
commands:
- nix-channel --add https://nixos.org/channels/nixos-unstable nixos
- nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
- nix-channel --update
- nix-build '<nixpkgs/nixos>' -j4 -A config.system.build.toplevel -I nixos-config=thinkpad/configuration.nix
- name: nas
image: nixos/nix:latest
depends_on: [clone]
commands:
- nix-channel --add https://nixos.org/channels/nixos-unstable nixos
- nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
- nix-channel --update
- nix-build '<nixpkgs/nixos>' -j4 -A config.system.build.toplevel -I nixos-config=nas/configuration.nix
- name: notify
image: drillster/drone-email
settings:
host: smtp.soverin.net
username:
from_secret: email_username
password:
from_secret: email_password
from: drone@sijman.nl
when:
status: [failure]