For example there is
.gitlab-cy.yml with ENV_BACKEND_URI variable
build:
stage: build
variables:
ENV_BACKEND_URI: "http://localhost:4200"
script:
- docker-compose build
docker-compose uses dockerfile
FROM node:10-alpine as build-stage
...
...
...
RUN ["chmod", "+x", "/dummy.sh"]
...
...
And I want to use this ENV_BACKEND_URI variable in dummy.sh script
For example just to echo it
echo $ENV_BACKEND_URI
How do I pass it there?
I've already tried to set it in docker-compose.yml
environment:
- ENV_BACKEND_URI=${ENV_BACKEND_URI}
But it is't available in dockerfile nor dymmy.sh