From e2d5c0c48d2e8d69aa02b3a6c12ffe630f710557 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sat, 25 Feb 2023 19:47:18 +0100 Subject: [PATCH] Fix job --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index de9d2ec..63a746a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,7 +60,7 @@ steps: - export ARGO_APP_HOSTNAME="${DRONE_BRANCH}-dev.badhouseplants.net" - export ARGO_APP_IMAGE_TAG=$DRONE_COMMIT_SHA - kubectl get -f ./kube/applicationset.yaml -o yaml > /tmp/old_appset.yaml - - yq 'del(.spec.generators[].list.elements[] | select(.name == ""))' /tmp/old_appset.yaml > /tmp/clean_appset.yaml + - yq 'del(.spec.generators[].list.elements[] | select(.name == "$ARGO_APP_BRANCH"))' /tmp/old_appset.yaml > /tmp/clean_appset.yaml - envsubst < ./kube/template.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