fix: regenerate labels on application clone
This commit is contained in:
parent
907e52572c
commit
1cef233db2
1 changed files with 5 additions and 0 deletions
|
|
@ -45,6 +45,11 @@ public function cloneTo($destination_id)
|
|||
'destination_id' => $new_destination->id,
|
||||
]);
|
||||
$new_resource->save();
|
||||
if ($new_resource->destination->server->proxyType() === 'TRAEFIK_V2') {
|
||||
$customLabels = str(implode("|", generateLabelsApplication($new_resource)))->replace("|", "\n");
|
||||
$new_resource->custom_labels = base64_encode($customLabels);
|
||||
$new_resource->save();
|
||||
}
|
||||
$environmentVaribles = $this->resource->environment_variables()->get();
|
||||
foreach ($environmentVaribles as $environmentVarible) {
|
||||
$newEnvironmentVariable = $environmentVarible->replicate()->fill([
|
||||
|
|
|
|||
Loading…
Reference in a new issue