feat: add basic environment sharing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-05-20 21:05:08 +02:00
parent 5ccfb6d31e
commit f71b68cd89
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
8 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,3 @@
cuddle/clusters:
dev:
prod:

View File

@ -0,0 +1 @@
env: dev

View File

@ -0,0 +1 @@
env: prod

View File

@ -0,0 +1 @@
env: {{ environment }}

View File

@ -0,0 +1,2 @@
cuddle/clusters:
dev:

View File

@ -0,0 +1 @@
some_file: 4

View File

@ -0,0 +1 @@
some_file: {{ 2 + 2 }}

View File

@ -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(())
}