-
Notifications
You must be signed in to change notification settings - Fork 575
27 lines (26 loc) · 997 Bytes
/
cleanup-clusters.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Wipe all clusters and apps
on:
schedule:
- cron: "0 2 * * *"
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
name: Wipe all clusters and apps on dev
steps:
- uses: realm/ci-actions/mdb-realm/deleteAllClusters@e7b65d7d587e1abc358968d7ff816cc0163906d2
name: "on realm.dev"
with:
realmUrl: ${{ secrets.REALM_BASE_URL }}
atlasUrl: ${{ secrets.ATLAS_BASE_URL }}
projectId: ${{ secrets.ATLAS_PROJECT_ID }}
apiKey: ${{ secrets.ATLAS_PUBLIC_API_KEY }}
privateApiKey: ${{ secrets.ATLAS_PRIVATE_API_KEY }}
- uses: realm/ci-actions/mdb-realm/deleteAllClusters@e7b65d7d587e1abc358968d7ff816cc0163906d2
name: "on realm.qa"
with:
realmUrl: ${{ secrets.REALM_QA_BASE_URL }}
atlasUrl: ${{ secrets.ATLAS_QA_BASE_URL }}
projectId: ${{ secrets.ATLAS_QA_PROJECT_ID }}
apiKey: ${{ secrets.ATLAS_QA_PUBLIC_API_KEY }}
privateApiKey: ${{ secrets.ATLAS_QA_PRIVATE_API_KEY }}