I am running a script in the CI/CD of the pipeline. The goal is to get a string to work with.
When I get that result, I save it into a variable and save result in the yaml file of the dockerfile.
I am wanting to pass that variable from the CI environment, into the docker-compose container. So, I am trying to export this like another things are exported, however it doesn't work:
I have added a variables.env file that looks like this:
And then modified the docker-compose.yaml to read the var :
And in the script that finally runs the docker-container, I have also
FROM ubuntu:16.04 as pdf-builder
RUN export $LOG
And right after, I run the script.sh that requires the variable, however, it returns Unbound variable and breaks.