I need clarification regarding GitLab environment variables with same name.
There are 4 enviornments - dev, uat, stg and prod.
In Settings → CI/CD → Variables I have defined 2 keys with same name but with different value.
dev, uat and stg has same values. Prod value is different. Example below
key column value column environment column
SOME_SECRET_KEY some value All(default)
SOME_SECRET_KEY some value1 prod
When the application is deployed in prod environment will it take the prod value? I could have easily tested it by deploying to prod but we haven’t got to prod yet so want to make sure before I deploy to prod for the first time.
GitLab Enterprise Edition [v17.5.4-ee]