Fix path to appset
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Nikolai Rodionov 2023-02-25 19:46:09 +01:00
parent e1478ec887
commit 650c6c5bf2
1 changed files with 1 additions and 1 deletions

View File

@ -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_application.set > /tmp/clean_appset.yaml
- yq 'del(.spec.generators[].list.elements[] | select(.name == ""))' /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