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_src }}/{{ project_name }}"
|
- "{{ project_src }}/{{ project_name }}"
|
||||||
|
|
||||||
docker_compose_file: "docker-compose-db.yml"
|
docker_compose_file: "docker-compose-db.yml.j2"
|
||||||
|
|
||||||
project_env: "env-db.j2"
|
project_env: "env-db.j2"
|
||||||
|
|
||||||
@ -21,3 +21,4 @@ ports_tcp:
|
|||||||
- "{{ postgres_port }}"
|
- "{{ postgres_port }}"
|
||||||
- "{{ redis_port }}"
|
- "{{ redis_port }}"
|
||||||
|
|
||||||
|
covas_liquibase: false
|
@ -15,7 +15,7 @@ project_directory:
|
|||||||
- "{{ project_src }}"
|
- "{{ project_src }}"
|
||||||
|
|
||||||
project_env: env-drone.j2
|
project_env: env-drone.j2
|
||||||
docker_compose_file: "docker-compose-drone.yml"
|
docker_compose_file: "docker-compose-drone.yml.j2"
|
||||||
|
|
||||||
ports_tcp:
|
ports_tcp:
|
||||||
- 8000
|
- 8000
|
||||||
|
@ -5,7 +5,7 @@ project_directory:
|
|||||||
- "{{ project_src }}"
|
- "{{ project_src }}"
|
||||||
|
|
||||||
|
|
||||||
docker_compose_file: "docker-compose-registry.yml"
|
docker_compose_file: "docker-compose-registry.yml.j2"
|
||||||
|
|
||||||
|
|
||||||
ports_tcp:
|
ports_tcp:
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
src: main.tf.j2
|
src: main.tf.j2
|
||||||
dest: "{{ project_terraform }}/main.tf"
|
dest: "{{ project_terraform }}/main.tf"
|
||||||
|
|
||||||
|
|
||||||
- name: Create cluster scaleway
|
- name: Create cluster scaleway
|
||||||
community.general.terraform:
|
community.general.terraform:
|
||||||
project_path: '{{ project_terraform }}'
|
project_path: '{{ project_terraform }}'
|
||||||
|
@ -30,6 +30,6 @@
|
|||||||
when: "project_env is defined"
|
when: "project_env is defined"
|
||||||
|
|
||||||
- name: Copy docker compose server file
|
- name: Copy docker compose server file
|
||||||
copy:
|
template:
|
||||||
src: "{{ docker_compose_file }}"
|
src: "{{ docker_compose_file }}"
|
||||||
dest: "{{ project_src }}/docker-compose.yml"
|
dest: "{{ project_src }}/docker-compose.yml"
|
||||||
|
@ -16,7 +16,7 @@ services:
|
|||||||
image: redis/redis-stack-server:latest
|
image: redis/redis-stack-server:latest
|
||||||
ports:
|
ports:
|
||||||
- "63791:6379"
|
- "63791:6379"
|
||||||
|
{% if covas_liquibase == true %}
|
||||||
liquibase:
|
liquibase:
|
||||||
build:
|
build:
|
||||||
context: ./covas-liquibase
|
context: ./covas-liquibase
|
||||||
@ -25,6 +25,7 @@ services:
|
|||||||
- db
|
- db
|
||||||
command:
|
command:
|
||||||
- "update"
|
- "update"
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
app-db-data:
|
app-db-data:
|
Loading…
x
Reference in New Issue
Block a user