I would like to have a file in store in a folder in git named .env with the following content:
a=bananas
b=apples
in my pipeline deployment stage, I would like to include this file and export it to the env variables, so that my docker container would receive it and set the proper values into docker-compose.
I tried without much lucky the following:
Deploy Production:
  stage: deploy
  image: my_image
  variables:
    include: /pr/.env
  script:
      - cat $a
      - echo $a
      - cat $b
      - echo $b
      - export .env
it doesn't seem to work, is it possible in gitlab-ci?
 
     
    