ci: uncomment debug statements and clear dps when merged (#22463)

Succesful run:
https://github.com/appsmithorg/appsmith/actions/runs/4718116171/jobs/8367371248
This commit is contained in:
Goutham Pratapa 2023-04-17 15:45:52 +05:30 committed by GitHub
parent 55e45e8250
commit f32623420e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 10 deletions

View File

@ -1,13 +1,8 @@
name: Cleanup Deploy Previews
on:
# This line enables manual triggering of this workflow.
workflow_dispatch:
#on:
# # This line enables manual triggering of this workflow.
# schedule:
# - cron: 0 0 * * *
schedule:
- cron: 0 0 * * *
jobs:
execute:

View File

@ -37,8 +37,8 @@ for i in $deployed_charts
echo $pr_state
if [[ $pr_state == "MERGED" ]]
then
echo "helm uninstall $i -n $i"
echo kubectl delete ns $i || echo "true"
echo mongosh "mongodb+srv://$DB_USERNAME:$DB_PASSWORD@$DB_URL/$i?retryWrites=true&minPoolSize=1&maxPoolSize=10&maxIdleTimeMS=900000&authSource=admin" --eval 'db.dropDatabase()'
helm uninstall $i -n $i
kubectl delete ns $i || true
mongosh "mongodb+srv://$DB_USERNAME:$DB_PASSWORD@$DB_URL/$i?retryWrites=true&minPoolSize=1&maxPoolSize=10&maxIdleTimeMS=900000&authSource=admin" --eval 'db.dropDatabase()'
fi
done