From 1c1393659bb8adb3273e2434725ae1664287a1c9 Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Tue, 8 Oct 2019 14:46:25 +0200 Subject: Add optional build flavor configuration --- tasks/deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tasks/deploy.yml') diff --git a/tasks/deploy.yml b/tasks/deploy.yml index 751d78f..5e0ba0c 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml @@ -16,6 +16,15 @@ DOMAIN: "{{ clever_domain | default(domain) }}" CONFIGURATION_FILE: "{{ clever_login_file }}" +- name: Configure Build Instance + when: clever_build_flavor is defined + command: "{{ ansible_env.HOME }}/{{ clever_user_path }}/clever-set-build-flavor.sh" + args: + chdir: "{{ clever_app_root }}" + environment: + BUILD_FLAVOR: "{{ clever_build_flavor }}" + CONFIGURATION_FILE: "{{ clever_login_file }}" + - name: Push Environment shell: "clever env import --json < {{ clever_app_confdir }}/env" args: -- cgit v1.2.3 From b1536bd484c818e8b3e26c271d35306882ef9956 Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Fri, 19 Jun 2020 12:09:22 +0200 Subject: Inline `clever scale --build-flavor` command --- tasks/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tasks/deploy.yml') diff --git a/tasks/deploy.yml b/tasks/deploy.yml index 5e0ba0c..ca1e54a 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml @@ -18,11 +18,10 @@ - name: Configure Build Instance when: clever_build_flavor is defined - command: "{{ ansible_env.HOME }}/{{ clever_user_path }}/clever-set-build-flavor.sh" + command: "clever scale --build-flavor {{ clever_build_flavor }}" args: chdir: "{{ clever_app_root }}" environment: - BUILD_FLAVOR: "{{ clever_build_flavor }}" CONFIGURATION_FILE: "{{ clever_login_file }}" - name: Push Environment -- cgit v1.2.3