S
S
Sergey Durov2018-04-26 09:57:58
Jenkins
Sergey Durov, 2018-04-26 09:57:58

How to deliver environment variables using Jenkins?

I am learning jenkins. The project has an .env file that stores all environment variables and then loads them using env modules. Since the file is not committed to git, I can’t figure out how to deliver this file to the production server using jenkins.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-04-26
@saboteur_kiev

Apparently you need to add it to the git.
Either the production already has its own env file that has unique settings for PROD - then you can add both options to the git, and check which one to deploy during deployment.
There is also a possibility that this file may contain sensitive data in an open form, then it cannot be added to the git.
Make up a task for yourself in detail and build on it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question