feat: add basic environment sharing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
5ccfb6d31e
commit
f71b68cd89
3
crates/cuddle-clusters/tests/environment/cuddle.yaml
Normal file
3
crates/cuddle-clusters/tests/environment/cuddle.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
cuddle/clusters:
|
||||||
|
dev:
|
||||||
|
prod:
|
@ -0,0 +1 @@
|
|||||||
|
env: dev
|
@ -0,0 +1 @@
|
|||||||
|
env: prod
|
@ -0,0 +1 @@
|
|||||||
|
env: {{ environment }}
|
2
crates/cuddle-clusters/tests/jinja/cuddle.yaml
Normal file
2
crates/cuddle-clusters/tests/jinja/cuddle.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
cuddle/clusters:
|
||||||
|
dev:
|
@ -0,0 +1 @@
|
|||||||
|
some_file: 4
|
@ -0,0 +1 @@
|
|||||||
|
some_file: {{ 2 + 2 }}
|
@ -23,3 +23,17 @@ async fn both() -> anyhow::Result<()> {
|
|||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[tokio::test]
|
||||||
|
async fn jinja() -> anyhow::Result<()> {
|
||||||
|
run_test("jinja").await?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
#[tokio::test]
|
||||||
|
async fn environment() -> anyhow::Result<()> {
|
||||||
|
run_test("environment").await?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user