|
1 | 1 | name: CMake Build
|
2 | 2 |
|
3 | 3 | env:
|
4 |
| - REALM_ATLAS_ENDPOINT: ${{ secrets.ATLAS_QA_BASE_URL }} |
5 |
| - REALM_BAAS_ENDPOINT: ${{ secrets.APPSERVICES_QA_BASE_URL }} |
6 |
| - REALM_ATLAS_API_KEY: ${{ secrets.ATLAS_QA_API_KEY }} |
7 |
| - REALM_ATLAS_PRIVATE_API_KEY: ${{ secrets.ATLAS_QA_PRIVATE_API_KEY }} |
8 |
| - REALM_ATLAS_PROJECT_ID: ${{ secrets.ATLAS_QA_PROJECT_ID}} |
| 4 | + APIKEY: ${{ secrets.REALM_BAASAAS_API_KEY }} |
9 | 5 | REALM_CI: true
|
10 | 6 | REALM_DISABLE_ANALYTICS: true
|
11 | 7 | on:
|
|
15 | 11 | pull_request:
|
16 | 12 |
|
17 | 13 | jobs:
|
18 |
| - deploy-cluster: |
| 14 | + stop-all-containers: |
19 | 15 | runs-on: ubuntu-latest
|
20 |
| - name: Deploy Cluster |
21 |
| - outputs: |
22 |
| - clusterName: ${{ steps.deploy-cluster.outputs.clusterName }} |
23 |
| - steps: |
24 |
| - - uses: realm/ci-actions/mdb-realm/deploy@28a12a22e135d56db2b678fbe6479c0e1b52f169 |
25 |
| - id: deploy-cluster |
26 |
| - with: |
27 |
| - atlasUrl: ${{ env.REALM_ATLAS_ENDPOINT }} |
28 |
| - realmUrl: ${{ env.REALM_BAAS_ENDPOINT }} |
29 |
| - projectId: ${{ env.REALM_ATLAS_PROJECT_ID }} |
30 |
| - apiKey: ${{ env.REALM_ATLAS_API_KEY }} |
31 |
| - privateApiKey: ${{ env.REALM_ATLAS_PRIVATE_API_KEY }} |
32 |
| - |
33 |
| - delete-cluster: |
34 |
| - runs-on: ubuntu-latest |
35 |
| - name: Delete Cluster |
| 16 | + name: Stop Stray Containers |
36 | 17 | if: always()
|
37 | 18 | needs:
|
38 | 19 | - build-macos-sync
|
39 | 20 | - build-linux-sync
|
40 | 21 | - build-windows-sync
|
41 | 22 | steps:
|
42 |
| - - uses: realm/ci-actions/mdb-realm/cleanup@28a12a22e135d56db2b678fbe6479c0e1b52f169 |
| 23 | + - name: Checkout Repository |
| 24 | + uses: actions/checkout@v3 |
43 | 25 | with:
|
44 |
| - atlasUrl: ${{ env.REALM_ATLAS_ENDPOINT }} |
45 |
| - realmUrl: ${{ env.REALM_BAAS_ENDPOINT }} |
46 |
| - projectId: ${{ env.REALM_ATLAS_PROJECT_ID }} |
47 |
| - apiKey: ${{ env.REALM_ATLAS_API_KEY }} |
48 |
| - privateApiKey: ${{ env.REALM_ATLAS_PRIVATE_API_KEY }} |
| 26 | + repository: 'https://github.com/10gen/baasaas.git' |
| 27 | + ref: 'main' |
| 28 | + - name: Execute CLI |
| 29 | + run: | |
| 30 | + chmod +x ./cli.sh |
| 31 | + ./cli.sh mine | grep '"id":' | awk -F '"' '{print $4}' | while read id; do |
| 32 | + ./cli.sh stop "$id" |
| 33 | + done |
49 | 34 |
|
50 | 35 |
|
51 | 36 | build-macos-xcode13_1:
|
|
64 | 49 | - Release
|
65 | 50 | exclude:
|
66 | 51 | - configuration: ${{ (github.event_name == 'pull_request' && 'Release') || 'none' }}
|
67 |
| - needs: |
68 |
| - - deploy-cluster |
69 |
| - env: |
70 |
| - REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }} |
71 | 52 | steps:
|
72 | 53 | - name: Checkout
|
73 | 54 | uses: actions/checkout@v2
|
@@ -129,10 +110,6 @@ jobs:
|
129 | 110 | - Release
|
130 | 111 | exclude:
|
131 | 112 | - configuration: ${{ (github.event_name == 'pull_request' && 'Release') || 'none' }}
|
132 |
| - needs: |
133 |
| - - deploy-cluster |
134 |
| - env: |
135 |
| - REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }} |
136 | 113 | steps:
|
137 | 114 | - name: Checkout
|
138 | 115 | uses: actions/checkout@v2
|
@@ -194,10 +171,6 @@ jobs:
|
194 | 171 | - Release
|
195 | 172 | exclude:
|
196 | 173 | - configuration: ${{ (github.event_name == 'pull_request' && 'Release') || 'none' }}
|
197 |
| - needs: |
198 |
| - - deploy-cluster |
199 |
| - env: |
200 |
| - REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }} |
201 | 174 | steps:
|
202 | 175 | - name: Checkout
|
203 | 176 | uses: actions/checkout@v2
|
@@ -269,12 +242,8 @@ jobs:
|
269 | 242 | configuration:
|
270 | 243 | - Debug
|
271 | 244 | - Release
|
272 |
| - needs: |
273 |
| - - deploy-cluster |
274 | 245 | container:
|
275 | 246 | image: ${{ matrix.compiler.name == 'clang' && 'silkeh/clang' || matrix.compiler.name }}:${{ matrix.compiler.version }}
|
276 |
| - env: |
277 |
| - REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }} |
278 | 247 | steps:
|
279 | 248 | - name: Install Linux Dependencies
|
280 | 249 | run: |
|
@@ -341,10 +310,6 @@ jobs:
|
341 | 310 | configuration:
|
342 | 311 | - Debug
|
343 | 312 | - Release
|
344 |
| - needs: |
345 |
| - - deploy-cluster |
346 |
| - env: |
347 |
| - REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }} |
348 | 313 | steps:
|
349 | 314 | - name: Checkout
|
350 | 315 | uses: actions/checkout@v2
|
@@ -414,10 +379,6 @@ jobs:
|
414 | 379 | configuration:
|
415 | 380 | - Debug
|
416 | 381 | - Release
|
417 |
| - needs: |
418 |
| - - deploy-cluster |
419 |
| - env: |
420 |
| - REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }} |
421 | 382 | steps:
|
422 | 383 | - name: Checkout
|
423 | 384 | uses: actions/checkout@v2
|
@@ -459,10 +420,6 @@ jobs:
|
459 | 420 | configuration:
|
460 | 421 | - Debug
|
461 | 422 | - Release
|
462 |
| - needs: |
463 |
| - - deploy-cluster |
464 |
| - env: |
465 |
| - REALM_ATLAS_CLUSTER_NAME: ${{ needs.deploy-cluster.outputs.clusterName }} |
466 | 423 | steps:
|
467 | 424 | - name: Checkout
|
468 | 425 | uses: actions/checkout@v2
|
|
0 commit comments