From e31546dcf529da84f7e09eda14f3ea6210170251 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 26 Jul 2021 03:14:23 +0200 Subject: [PATCH] git: prepare for auto-deployment --- .drone.yml | 15 +++++++++++++++ krops.nix | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..8681c01 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,15 @@ +--- +kind: pipeline +type: exec +name: Test NixOS configurations + +platform: + os: linux + arch: amd64 + +steps: +- name: Build core-services-01 on core-services-01 + commands: + - "nix-build krops.nix -A test-core-services-01 && ./result" + +... diff --git a/krops.nix b/krops.nix index 174498a..2cf10e9 100644 --- a/krops.nix +++ b/krops.nix @@ -21,4 +21,10 @@ in source = source "core-services-01"; target = "root@core01.internal.rz.ens.wtf"; }; + + test-core-services-01 = pkgs.krops.writeTest "test-core-services-01" { + source = source "core-services-01"; + target = "root@core01.internal.rz.ens.wtf"; + }; + }