From 03394feca874169cc35113ff8561eaa90e5cb0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20B=C4=99za?= Date: Wed, 8 May 2024 10:18:31 +0200 Subject: [PATCH] Add support for env vars in koyeb compose --- pkg/koyeb/compose.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/koyeb/compose.go b/pkg/koyeb/compose.go index 7a177e94..b2cb7f33 100644 --- a/pkg/koyeb/compose.go +++ b/pkg/koyeb/compose.go @@ -61,8 +61,10 @@ func parseComposeFile(path string) (*KoyebCompose, error) { return nil, err } + exapndEnvData := os.ExpandEnv(string(data)) + var config *KoyebCompose - err = yaml.Unmarshal(data, &config) + err = yaml.Unmarshal([]byte(exapndEnvData), &config) if err != nil { return nil, err }