build image WIP
This commit is contained in:
parent
da8e10ef4e
commit
e6f9d71c4f
@ -1,3 +1,4 @@
|
|||||||
project_terraform: "/home/valentin/terraform"
|
project_terraform: "/home/valentin/terraform"
|
||||||
region_k8s: "fr-par"
|
region_k8s: "fr-par"
|
||||||
project_name: "terraform-test"
|
project_name: "terraform-test"
|
||||||
|
quarkus_project: "covas-quarkus"
|
@ -4,6 +4,7 @@ localhost ansible_host=127.0.0.1
|
|||||||
|
|
||||||
[db]
|
[db]
|
||||||
vps
|
vps
|
||||||
|
localhost
|
||||||
|
|
||||||
[db_vault:children]
|
[db_vault:children]
|
||||||
db
|
db
|
||||||
|
@ -3,29 +3,28 @@
|
|||||||
- name: git archive local
|
- name: git archive local
|
||||||
local_action:
|
local_action:
|
||||||
module: git
|
module: git
|
||||||
repo: "https://{{ git_username | urlencode }}:{{ git_password | urlencode }}@git.valczeryba.ovh/v4l3n71n/{{ project_name }}.git"
|
repo: "https://{{ git_username | urlencode }}:{{ git_password | urlencode }}@git.valczeryba.ovh/v4l3n71n/{{ quarkus_project }}.git"
|
||||||
dest: "/home/valentin/src/"
|
dest: "/home/valentin/src/"
|
||||||
archive: "/tmp/{{ project_name }}.tar.gz"
|
archive: "/tmp/{{ quarkus_project }}.tar.gz"
|
||||||
force: yes
|
force: yes
|
||||||
update: yes
|
update: yes
|
||||||
when: "project_name is defined"
|
when: "quarkus_project is defined"
|
||||||
|
|
||||||
- name: Create directory
|
- name: Create directory
|
||||||
file:
|
file:
|
||||||
path: "{{ home_dir }}/{{ project_name }}"
|
path: "{{ home_dir }}/{{ quarkus_project }}"
|
||||||
state: directory
|
state: directory
|
||||||
when: "project_name is defined"
|
when: "quarkus_project is defined"
|
||||||
|
|
||||||
|
|
||||||
- name: Extract covas liquibase
|
- name: Extract covas quarkus
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "/tmp/{{ project_name }}.tar.gz"
|
src: "/tmp/{{ quarkus_project }}.tar.gz"
|
||||||
dest: "{{ home_dir }}/{{ project_name }}"
|
dest: "{{ home_dir }}/{{ quarkus_project }}"
|
||||||
when: "project_name is defined"
|
when: "quarkus_project is defined"
|
||||||
|
|
||||||
|
|
||||||
- name: Template env file
|
- name: Template env file
|
||||||
template:
|
template:
|
||||||
src: "{{ project_env }}"
|
src: "env-build.j2"
|
||||||
dest: "{{ home_dir }}/.env"
|
dest: "{{ home_dir }}/{{ quarkus_project }}/.env"
|
||||||
when: "project_env is defined"
|
|
Loading…
x
Reference in New Issue
Block a user