fix: env variable in value parsed

This commit is contained in:
Andras Bacsai
2024-09-04 14:33:16 +02:00
parent ba90a52344
commit bfeaae9caa
4 changed files with 8 additions and 3 deletions

View File

@@ -3331,7 +3331,10 @@ function newParser(Application|Service $resource, int $pull_request_id = 0, ?int
foreach ($normalEnvironments as $key => $value) {
$key = str($key);
$value = str($value);
if ($value->startsWith('$')) {
if ($value->startsWith('$') || $value->contains('${')) {
if ($value->contains('${')) {
$value = $value->after('${')->before('}');
}
$value = str(replaceVariables(str($value)));
if ($value->contains(':-')) {
$key = $value->before(':');