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:
parent
55e45e8250
commit
f32623420e
9
.github/workflows/cleanup-dp.yml
vendored
9
.github/workflows/cleanup-dp.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user