add condition for update or drop-create database

This commit is contained in:
Valentin CZERYBA 2023-01-03 19:05:39 +01:00
parent e502e04372
commit f36366a319
8 changed files with 7 additions and 6 deletions

View File

@ -11,7 +11,7 @@ project_directory:
- "{{ project_src }}"
- "{{ project_src }}/{{ project_name }}"
docker_compose_file: "docker-compose-db.yml"
docker_compose_file: "docker-compose-db.yml.j2"
project_env: "env-db.j2"
@ -21,3 +21,4 @@ ports_tcp:
- "{{ postgres_port }}"
- "{{ redis_port }}"
covas_liquibase: false

View File

@ -15,7 +15,7 @@ project_directory:
- "{{ project_src }}"
project_env: env-drone.j2
docker_compose_file: "docker-compose-drone.yml"
docker_compose_file: "docker-compose-drone.yml.j2"
ports_tcp:
- 8000

View File

@ -5,7 +5,7 @@ project_directory:
- "{{ project_src }}"
docker_compose_file: "docker-compose-registry.yml"
docker_compose_file: "docker-compose-registry.yml.j2"
ports_tcp:

View File

@ -11,7 +11,6 @@
src: main.tf.j2
dest: "{{ project_terraform }}/main.tf"
- name: Create cluster scaleway
community.general.terraform:
project_path: '{{ project_terraform }}'

View File

@ -30,6 +30,6 @@
when: "project_env is defined"
- name: Copy docker compose server file
copy:
template:
src: "{{ docker_compose_file }}"
dest: "{{ project_src }}/docker-compose.yml"

View File

@ -16,7 +16,7 @@ services:
image: redis/redis-stack-server:latest
ports:
- "63791:6379"
{% if covas_liquibase == true %}
liquibase:
build:
context: ./covas-liquibase
@ -25,6 +25,7 @@ services:
- db
command:
- "update"
{% endif %}
volumes:
app-db-data: