forked from Fediversity/Fediversity
test: factor out runtime-environment
This commit is contained in:
parent
7906e9fc92
commit
dbd3e90238
1 changed files with 5 additions and 2 deletions
|
@ -18,6 +18,9 @@ in
|
||||||
let
|
let
|
||||||
example = eval (
|
example = eval (
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
inherit (config.resources.bar.runtime-environment) runtime-environment;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
providers.ssh-host =
|
providers.ssh-host =
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
@ -40,11 +43,11 @@ in
|
||||||
};
|
};
|
||||||
deployments.baz = {
|
deployments.baz = {
|
||||||
module = { };
|
module = { };
|
||||||
runtime-environment = config.resources.bar.runtime-environment;
|
inherit runtime-environment;
|
||||||
};
|
};
|
||||||
migrations.boo = {
|
migrations.boo = {
|
||||||
|
inherit runtime-environment;
|
||||||
deployment = config.deployments.baz;
|
deployment = config.deployments.baz;
|
||||||
runtime-environment = config.resources.bar.runtime-environment;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue