From ec0b56372a92c631e1b37b11a8bce564560a1aa6 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sat, 25 Feb 2023 20:35:44 +0000 Subject: [PATCH] Fix the main pipeline (#20) A wront template was used in the main pipeline Reviewed-on: https://git.badhouseplants.net/allanger/badhouseplants-net/pulls/20 --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 684124e..413e86f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -83,7 +83,7 @@ steps: - kubectl get -f ./kube/applicationset.yaml -o yaml > /tmp/old_appset.yaml - yq "del(.spec.generators[].list.elements[] | select(.name == \"$ARGO_APP_BRANCH\"))" /tmp/old_appset.yaml > /tmp/clean_appset1.yaml - yq "del(.spec.generators[].list.elements[] | select(.commit_sha == \"$ARGO_APP_IMAGE_TAG\"))" /tmp/clean_appset1.yaml > /tmp/clean_appset.yaml - - envsubst < ./kube/template.yaml > /tmp/elements.yaml + - envsubst < ./kube/main.yaml > /tmp/elements.yaml - yq '.spec.generators[].list.elements += load("/tmp/elements.yaml")' /tmp/clean_appset.yaml > /tmp/new_appset.yaml - kubectl apply -f /tmp/new_appset.yaml