build: ArgoCD is pruning resource when syncing now

Issue: https://git.badhouseplants.net/badhouseplants/badhouseplants-net/issues/31
This commit is contained in:
Nikolai Rodionov 2023-06-23 17:55:48 +02:00
parent bbfa15e45e
commit 58c3c039c9
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10

View File

@ -38,7 +38,7 @@ print `yq -i '.spec.source.helm.values = load_str("/tmp/values.yaml")' /tmp/appl
if(!defined $ENV{DEPLOY_SCRIPT_DEBUG}){
print `argocd app create -f /tmp/application.yaml --upsert` or die $!;
print `argocd app sync -l application=badhouseplants -l branch=$git_branch` or die $!;
print `argocd app sync --prune -l application=badhouseplants -l branch=$git_branch` or die $!;
print `argocd app wait -l application=badhouseplants -l branch=$git_branch` or die $!;
}
# ----------------------------------