mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-18 02:44:51 +03:00
🔧 update .gitlab-ci.yml
: fixed indentation problem
This commit is contained in:
parent
7da6f4e7d1
commit
4a4e37978e
|
@ -42,22 +42,22 @@ pytest:
|
|||
- docker-compose -f local.yml up -d
|
||||
script:
|
||||
- docker-compose -f local.yml run django pytest
|
||||
{%- else -%}
|
||||
{%- else %}
|
||||
image: python:3.9
|
||||
tags:
|
||||
- python
|
||||
services:
|
||||
{% if cookiecutter.database_engine == 'postgresql' -%}
|
||||
{%- if cookiecutter.database_engine == 'postgresql' %}
|
||||
- postgres:{{ cookiecutter.database_version.split('@')[1] }}
|
||||
{% elif cookiecutter.database_engine == 'mysql' -%}
|
||||
{%- elif cookiecutter.database_engine == 'mysql' %}
|
||||
- mysql:{{ cookiecutter.database_version.split('@')[1] }}
|
||||
{% endif -%}
|
||||
{%- endif %}
|
||||
variables:
|
||||
{% if cookiecutter.database_engine == 'postgresql' -%}
|
||||
{%- if cookiecutter.database_engine == 'postgresql' %}
|
||||
DATABASE_URL: pgsql://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres/$POSTGRES_DB
|
||||
{% elif cookiecutter.database_engine == 'mysql' -%}
|
||||
{%- elif cookiecutter.database_engine == 'mysql' %}
|
||||
DATABASE_URL: mysql://$MYSQL_USER:$MYSQL_PASSWORD@mysql/$MYSQL_DATABASE
|
||||
{% endif -%}
|
||||
{%- endif %}
|
||||
|
||||
before_script:
|
||||
- pip install -r requirements/local.txt
|
||||
|
|
Loading…
Reference in New Issue
Block a user