add condition for update or drop-create database
This commit is contained in:
parent
e502e04372
commit
f36366a319
@ -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
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -11,7 +11,6 @@
|
||||
src: main.tf.j2
|
||||
dest: "{{ project_terraform }}/main.tf"
|
||||
|
||||
|
||||
- name: Create cluster scaleway
|
||||
community.general.terraform:
|
||||
project_path: '{{ project_terraform }}'
|
||||
|
@ -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"
|
||||
|
@ -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:
|
Loading…
x
Reference in New Issue
Block a user