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