Hello!
I'm trying to build a docker container and for that I defined a number of build args for it so data like a DB connection string is secured in the bitbucket repository per deployment (Test, Stage, Production). I noticed that the variables are not substituted.
Take this simplified version:
docker build -t test:dev-1 -f ./Dockerfile --build-arg DATABASE_URL=$CI_DB_URL .
CI_DB_URL is a secure value for my deployment Test. The container build will fail because it verfies the db connection and don't have a working value because it will get a "$CI_DB_URL" as a string instead of the substituted CI_DB_URL variable value.
I tested my own integration with a not secured value and this worked like expected. But I would prefer a secure value instead.
Does anyone know about this issue and how I can work around this?
Cheers,
Sebastian