fix: add source commit to final envs
This commit is contained in:
parent
2fe6766b7f
commit
8c20c833ba
1 changed files with 4 additions and 0 deletions
|
|
@ -1129,6 +1129,10 @@ private function generate_environment_variables($ports)
|
|||
// Add PORT if not exists, use the first port as default
|
||||
if ($environment_variables->filter(fn ($env) => Str::of($env)->contains('PORT'))->isEmpty()) {
|
||||
$environment_variables->push("PORT={$ports[0]}");
|
||||
} if ($environment_variables->filter(fn ($env) => Str::of($env)->contains('SOURCE_COMMIT'))->isEmpty()) {
|
||||
if (!is_null($this->commit)) {
|
||||
$environment_variables->push("SOURCE_COMMIT={$this->commit}");
|
||||
}
|
||||
}
|
||||
return $environment_variables->all();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue