don't overwrite exposed env variables
continuous-integration/drone/pr Build is failing
Details
continuous-integration/drone/pr Build is failing
Details
This commit is contained in:
parent
89a2c889a4
commit
1c9a931143
|
@ -454,9 +454,12 @@ func ExposeAllEnv(compose *composetypes.Config, appEnv AppEnv) {
|
||||||
if service.Name == "app" {
|
if service.Name == "app" {
|
||||||
logrus.Debug("Add the following environment to the app service config:")
|
logrus.Debug("Add the following environment to the app service config:")
|
||||||
for k, v := range appEnv {
|
for k, v := range appEnv {
|
||||||
value := v
|
_, exists := service.Environment[k]
|
||||||
service.Environment[k] = &value
|
if !exists {
|
||||||
logrus.Debugf("Key: %s Value: %s", k, value)
|
value := v
|
||||||
|
service.Environment[k] = &value
|
||||||
|
logrus.Debugf("Add Key: %s Value: %s", k, value)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue