File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 22set -eu
33set -o pipefail
44
5-
65ENV_DIR=${ENV_DIR:- ./ env}
76. $ENV_DIR /.secrets
87
@@ -33,7 +32,7 @@ function template_drone_config() {
3332 cat $templatePath | sed -e " s/__CLOUD/${CLOUD} /g" -e " s/__CLUSTER/${CLUSTER} /g" \
3433 -e " s/__IMAGE_TAG/${otomi_image_tag} /g" -e " s|__WEBHOOK|${webhook} |g" \
3534 -e " s/__CUSTOMER/${customer_name} /g" \
36- > $target
35+ > $target
3736}
3837
3938for_each_cluster template_drone_config
Original file line number Diff line number Diff line change @@ -329,6 +329,11 @@ function execute() {
329329 kubectl config use $K8S_CONTEXT
330330 drun bin/bootstrap.sh 1
331331 ;;
332+ gen-drone)
333+ check_kube_context=0
334+ evaluate_secrets
335+ drun bin/gen-drone.sh
336+ ;;
332337 test)
333338 validate_cluster_env
334339 evaluate_secrets
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -e
3+ set -o pipefail
4+
5+ ENV_DIR=${ENV_DIR:- ./ env}
36
47match=" clusters.yaml"
5- set -o pipefail
68if git -C $ENV_DIR diff --name-only | grep $match > /dev/null; then
79 bin/gen-drone.sh
810fi
You can’t perform that action at this time.
0 commit comments