diff --git a/engine/compiler/util.go b/engine/compiler/util.go index 2c64f89..7729abb 100644 --- a/engine/compiler/util.go +++ b/engine/compiler/util.go @@ -63,6 +63,9 @@ func configureSerial(spec *engine.Spec) { func convertStaticEnv(src map[string]*manifest.Variable) map[string]string { dst := map[string]string{} for k, v := range src { + if v == nil { + continue + } if strings.TrimSpace(v.Secret) == "" { dst[k] = v.Value } @@ -76,6 +79,9 @@ func convertStaticEnv(src map[string]*manifest.Variable) map[string]string { func convertSecretEnv(src map[string]*manifest.Variable) []*engine.Secret { dst := []*engine.Secret{} for k, v := range src { + if v == nil { + continue + } if strings.TrimSpace(v.Secret) != "" { dst = append(dst, &engine.Secret{ Name: v.Secret,