feat(core): add SOURCE_COMMIT variable to build environment in ApplicationDeploymentJob
This commit is contained in:
parent
726c3bfd97
commit
bae8b9a938
1 changed files with 1 additions and 0 deletions
|
|
@ -2289,6 +2289,7 @@ private function start_by_compose_file()
|
||||||
private function generate_build_env_variables()
|
private function generate_build_env_variables()
|
||||||
{
|
{
|
||||||
$variables = collect($this->nixpacks_plan_json->get('variables'));
|
$variables = collect($this->nixpacks_plan_json->get('variables'));
|
||||||
|
$variables->put('SOURCE_COMMIT', $this->commit);
|
||||||
|
|
||||||
$this->build_args = $variables->map(function ($value, $key) {
|
$this->build_args = $variables->map(function ($value, $key) {
|
||||||
$value = escapeshellarg($value);
|
$value = escapeshellarg($value);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue