skip to Main Content

Why docker-compose –build-arg not work for yaml file?

I have .bat with arguments, which run docker-compose build ... set "Build=Build" set "PublishConfig=Debug" ... docker-compose -f backend.yml --env-file ./.env build --build-arg EMP_PUBLISH_CONFIG=%PublishConfig% --build-arg EMP_BUILD_LOCALLY=%Build% ... .env file with variables EMP_PUBLISH_CONFIG=Release EMP_BUILD_LOCALLY="" .yml file version: "3.7" ... services: customers: container_name:…

VIEW QUESTION

Unable to get the value of variable inside a variable in azure pipelines – Ubuntu

I'm trying to use variables inside variables in azure pipelines. Below is an example of the bash script: #!/bin/bash customer=google environment=preprod android_google_preprod_account_activation_url=preprod.google.com echo "Customer is $customer" echo "Environment is $environment" var1=android_${customer}_${environment}_account_activation_url echo "variable is $var1" echo "original value is ${!var1}"…

VIEW QUESTION
Back To Top
Search