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 --- files/clever-set-build-flavor.sh | 9 --------- tasks/deploy.yml | 3 +-- tasks/setup.yml | 1 - 3 files changed, 1 insertion(+), 12 deletions(-) delete mode 100755 files/clever-set-build-flavor.sh diff --git a/files/clever-set-build-flavor.sh b/files/clever-set-build-flavor.sh deleted file mode 100755 index 52ad223..0000000 --- a/files/clever-set-build-flavor.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env bash - -set -e - -function setBuildFlavor { - clever scale --build-flavor "${BUILD_FLAVOR}" -} - -setBuildFlavor 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 diff --git a/tasks/setup.yml b/tasks/setup.yml index 3bf7965..a2d5b90 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml @@ -29,4 +29,3 @@ with_items: - clever-set-domain.sh - clever-set-drain.sh - - clever-set-build-flavor.sh -- cgit v1.2.3