Fix tempalte

This commit is contained in:
Nikolai Rodionov
2023-02-25 21:05:01 +01:00
parent fc92125a03
commit 665f8a87c0
3 changed files with 8 additions and 5 deletions

View File

@ -373,4 +373,9 @@ And now let's create a job like that:
from_secret: ARGOCD_AUTH_TOKEN
commands:
- argocd app sync -l app=badhouseplants -l branch=$DRONE_BRANCH
```
- argocd app wait -l app=badhouseplants -l branch=$DRONE_BRANCH
```
And the last step would be to remove an application when branch is removed.
> Also, I've found out that `ArgoCD` won't remove a namespace if it was created by a `SyncPolicy`, so I've added it to the helm chart, and add a new `value` to provide a name.