Good afternoon. I ask for help because i have been trying different ways to get the values from environment vars in the global config of the project to the environment into a build. These are the configs that i’ve been trying:
environment:
- FAST_PURGE: "${FAST_PURGE_STG}"
- AKAMAI_BASE_URL: "${AKAMAI_BASE_URL_STG}"
- AKAMAI_CLIENT_SECRET: "${AKAMAI_CLIENT_SECRET_STG}"
- AKAMAI_ACCESS_TOKEN: "${AKAMAI_ACCESS_TOKEN_STG}"
- AKAMAI_CLIENT_TOKEN: "${AKAMAI_CLIENT_TOKEN_STG}"
environment:
- FAST_PURGE: "$FAST_PURGE_STG"
- AKAMAI_BASE_URL: "$AKAMAI_BASE_URL_STG"
- AKAMAI_CLIENT_SECRET: "$AKAMAI_CLIENT_SECRET_STG"
- AKAMAI_ACCESS_TOKEN: "$AKAMAI_ACCESS_TOKEN_STG"
- AKAMAI_CLIENT_TOKEN: "$AKAMAI_CLIENT_TOKEN_STG"
environment:
- FAST_PURGE: $FAST_PURGE_STG
- AKAMAI_BASE_URL: $AKAMAI_BASE_URL_STG
- AKAMAI_CLIENT_SECRET: $AKAMAI_CLIENT_SECRET_STG
- AKAMAI_ACCESS_TOKEN: $AKAMAI_ACCESS_TOKEN_STG
- AKAMAI_CLIENT_TOKEN: $AKAMAI_CLIENT_TOKEN_STG
In all the cases i’ve got it as a value the name of the variable that i’m trying to obtain his value, for example for FAST_PURGE variable i’ve got it ${FAST_PURGE_STG}, $FAST_PURGE_STG and $FAST_PURGE_STG for the three past cases.
Thanks in advance for your help.