fix: only sync version label once

Closes coop-cloud/organising#492
This commit is contained in:
2023-09-21 10:58:17 +02:00
parent 76035e003e
commit 8788558cf1
2 changed files with 17 additions and 1 deletions

View File

@ -122,7 +122,7 @@ func UpdateLabel(pattern, serviceName, label, recipeName string) error {
discovered := false
for oldLabel, value := range service.Deploy.Labels {
if strings.HasPrefix(oldLabel, "coop-cloud") {
if strings.HasPrefix(oldLabel, "coop-cloud") && strings.Contains(oldLabel, "version") {
discovered = true
bytes, err := ioutil.ReadFile(composeFile)