Skip to content

Commit

Permalink
Add support for env vars in koyeb compose
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelbeza committed May 8, 2024
1 parent db2f559 commit 03394fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/koyeb/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 03394fe

Please sign in to comment.