浏览代码

Service being declared in a profile must not trigger re-creation

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof 1 年之前
父节点
当前提交
513b6128c2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pkg/compose/hash.go

+ 1 - 0
pkg/compose/hash.go

@@ -33,6 +33,7 @@ func ServiceHash(o types.ServiceConfig) (string, error) {
 		o.Deploy.Replicas = nil
 		o.Deploy.Replicas = nil
 	}
 	}
 	o.DependsOn = nil
 	o.DependsOn = nil
+	o.Profiles = nil
 
 
 	bytes, err := json.Marshal(o)
 	bytes, err := json.Marshal(o)
 	if err != nil {
 	if err != nil {