forked from toolshed/abra
		
	| @ -3,6 +3,7 @@ package app | |||||||
| import ( | import ( | ||||||
| 	"context" | 	"context" | ||||||
| 	"errors" | 	"errors" | ||||||
|  | 	"fmt" | ||||||
| 	"strings" | 	"strings" | ||||||
|  |  | ||||||
| 	"coopcloud.tech/abra/cli/internal" | 	"coopcloud.tech/abra/cli/internal" | ||||||
| @ -159,7 +160,18 @@ checkout as-is. Recipe commit hashes are also supported as values for | |||||||
| 			appPkg.SetChaosVersionLabel(compose, stackName, toDeployVersion) | 			appPkg.SetChaosVersionLabel(compose, stackName, toDeployVersion) | ||||||
| 		} | 		} | ||||||
| 		appPkg.SetUpdateLabel(compose, stackName, app.Env) | 		appPkg.SetUpdateLabel(compose, stackName, app.Env) | ||||||
| 		appPkg.SetVersionLabel(compose, stackName, toDeployVersion) |  | ||||||
|  | 		versionLabel := toDeployVersion | ||||||
|  | 		if internal.Chaos { | ||||||
|  | 			for _, service := range compose.Services { | ||||||
|  | 				if service.Name == "app" { | ||||||
|  | 					labelKey := fmt.Sprintf("coop-cloud.%s.version", stackName) | ||||||
|  | 					// NOTE(d1): keep non-chaos version labbeling when doing chaos ops | ||||||
|  | 					versionLabel = service.Deploy.Labels[labelKey] | ||||||
|  | 				} | ||||||
|  | 			} | ||||||
|  | 		} | ||||||
|  | 		appPkg.SetVersionLabel(compose, stackName, versionLabel) | ||||||
|  |  | ||||||
| 		envVars, err := appPkg.CheckEnv(app) | 		envVars, err := appPkg.CheckEnv(app) | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user