ma krops: add buildTarget
This commit is contained in:
parent
fe393ec4e7
commit
aa1b8ed563
@ -1,4 +1,4 @@
|
|||||||
{ config ? config, name, target ? name }: let
|
{ config ? config, name, target ? name , buildTarget ? target }: let
|
||||||
krops = ../submodules/krops;
|
krops = ../submodules/krops;
|
||||||
nixpkgs-src = lib.importJSON ../krebs/nixpkgs.json;
|
nixpkgs-src = lib.importJSON ../krebs/nixpkgs.json;
|
||||||
|
|
||||||
@ -87,6 +87,7 @@ in {
|
|||||||
deploy = pkgs.krops.writeDeploy "${name}-deploy" {
|
deploy = pkgs.krops.writeDeploy "${name}-deploy" {
|
||||||
source = source { test = false; };
|
source = source { test = false; };
|
||||||
target = "root@${target}/var/src";
|
target = "root@${target}/var/src";
|
||||||
|
buildTarget = if target == buildTarget then "root@${target}/var/src" else "root@${buildTarget}/tmp/";
|
||||||
};
|
};
|
||||||
|
|
||||||
# usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A test)
|
# usage: $(nix-build --no-out-link --argstr name HOSTNAME --argstr target PATH -A test)
|
||||||
|
Loading…
Reference in New Issue
Block a user