Docker exercise for mac

broken image
broken image

There are two types of variable you can define: Variable and File, as you can see in this example:ĭB_PASSWORD has been declared as a Variable, and given a value. Here you can define variable names and values, which will be automatically passed into the gitlab pipelines, and are available as environment variables there. Go to your project page, Settings tab -> CI/CD, find Variables and click on the Expand button. Not a good idea, to say the least!Īn alternative is to use Gitlab Variables.

broken image

You could save them in a file in your git repository, but that makes them visible to anyone who can view the repository. You need to pass the name of the database host, the account, and password, to the running pipeline. Suppose you’re building an application that needs access to a database, and you want to test that access from your CI/CD pipeline.