enable CI environment additionally for MINIO_CI_CD (#14395)

all CI/CD environments set CI=true this is enough
for MinIO to be run inside CI environments, support
it.
This commit is contained in:
Harshavardhana 2022-02-23 16:01:59 -08:00 committed by GitHub
parent 77210513c9
commit 2d78e20120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -664,7 +664,7 @@ func handleCommonEnvVars() {
globalRootDiskThreshold = size
}
globalIsCICD = env.Get("MINIO_CI_CD", "") != ""
globalIsCICD = env.Get("MINIO_CI_CD", "") != "" || env.Get("CI", "") != ""
domains := env.Get(config.EnvDomain, "")
if len(domains) != 0 {