Add notes to the docs about setting service variables for users wanting to do so from the UI

This commit is contained in:
Elliot Rushton 2019-07-24 06:11:14 +00:00 committed by Evan Read
parent 245fdf5610
commit e3173c918f
2 changed files with 13 additions and 0 deletions

View file

@ -25,6 +25,12 @@ variables:
MYSQL_ROOT_PASSWORD: "<your_mysql_password>"
```
NOTE: **Note:**
The `MYSQL_DATABASE` and `MYSQL_ROOT_PASSWORD` variables can't be set in the GitLab UI.
To set them, assign them to a variable [in the UI](../variables/README.md#via-the-ui),
and then assign that variable to the
`MYSQL_DATABASE` and `MYSQL_ROOT_PASSWORD` variables in your `.gitlab-ci.yml`.
And then configure your application to use the database, for example:
```yaml

View file

@ -25,6 +25,13 @@ variables:
POSTGRES_PASSWORD: ""
```
NOTE: **Note:**
The `POSTGRES_DB`, `POSTGRES_USER`, and `POSTGRES_PASSWORD` variables can't be set in
the GitLab UI. To set them, assign them to a variable
[in the UI](../variables/README.md#via-the-ui), and then assign that
variable to the `POSTGRES_DB`, `POSTGRES_USER`, and `POSTGRES_PASSWORD` variables in
your `.gitlab-ci.yml`.
And then configure your application to use the database, for example:
```yaml