mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-27 19:43:34 +00:00
refactor: manually modernize Go (#349)
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -683,9 +683,7 @@ func (s *Server) CreateServiceContainer(
|
||||
// Apply the pre-deploy hook overrides.
|
||||
config.Cmd = spec.PreDeploy.Command
|
||||
|
||||
for k, v := range spec.PreDeploy.Env {
|
||||
envVars[k] = v
|
||||
}
|
||||
maps.Copy(envVars, spec.PreDeploy.Env)
|
||||
envVars["UNCLOUD_HOOK_PRE_DEPLOY"] = "true"
|
||||
config.Env = envVars.ToSlice()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user