set custom labels on every app

This commit is contained in:
Andras Bacsai
2024-01-02 16:44:41 +01:00
parent cc64132627
commit 0653eb8511
4 changed files with 9 additions and 3 deletions

View File

@@ -116,6 +116,9 @@ class General extends Component
}
$this->isConfigurationChanged = $this->application->isConfigurationChanged();
$this->customLabels = $this->application->parseContainerLabels();
if (!$this->customLabels) {
$this->resetDefaultLabels(false);
}
$this->initialDockerComposeLocation = $this->application->docker_compose_location;
$this->checkLabelUpdates();
}
@@ -209,6 +212,9 @@ class General extends Component
if ($this->ports_exposes !== $this->application->ports_exposes) {
$this->resetDefaultLabels(false);
}
if (!$this->customLabels) {
$this->resetDefaultLabels(false);
}
if (data_get($this->application, 'build_pack') === 'dockerimage') {
$this->validate([
'application.docker_registry_image_name' => 'required',