nix/.drone.yml

35 lines
1.1 KiB
YAML
Raw Normal View History

2022-08-01 21:45:07 +00:00
---
kind: pipeline
name: default
steps:
- name: thinkpad
image: nixos/nix:latest
2022-08-07 21:36:03 +00:00
depends_on: [clone]
2022-08-01 21:45:07 +00:00
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
2022-08-01 21:45:07 +00:00
2022-08-07 21:31:52 +00:00
- name: nas
image: nixos/nix:latest
2022-08-07 21:36:03 +00:00
depends_on: [clone]
2022-08-07 21:31:52 +00:00
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
2022-08-07 16:32:27 +00:00
- 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]