-
Notifications
You must be signed in to change notification settings - Fork 39
chore: Updates cleanup-test-env workflow for MongoDB Atlas provider and cleanup script #1281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
5bf5580
d2a693b
9702c78
e042ef8
61a5fba
3ca16ca
1169fa8
455c7d5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,21 +6,81 @@ on: | |
| - cron: "0 3 * * *" # workflow runs every day at 03:00 AM | ||
|
|
||
| jobs: | ||
| clenup-test-env-general: | ||
| cleanup-dev-cfn-test-github: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| - name: terraform-provider-mongodbatlas-checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
| with: | ||
| sparse-checkout: | | ||
| scripts | ||
| - uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a | ||
| repository: mongodb/terraform-provider-mongodbatlas | ||
| ref: 133ee57735e0c8f2b22e74bbd9f8c3fdd8da2f9c | ||
|
||
| - name: Cleanup cloud-dev CFN Test GitHub | ||
| shell: bash | ||
| uses: ./.github/templates/clean-atlas-org | ||
| env: | ||
| MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what projects are we effectively cleaning with this PR before unifying names?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not many, although the CFNTest org had 98 projects removed. |
||
| MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }} | ||
| MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }} | ||
| MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | ||
| PROJECT_TO_NOT_DELETE: ${{ vars.CLOUD_DEV_PROJECT_ID }} | ||
| run: ./scripts/cleanup-test-env.sh | ||
| MONGODB_ATLAS_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | ||
| MONGODB_ATLAS_CLEAN_RETRY_ATTEMPTS: "1" | ||
| cleanup-dev-cfntest: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: terraform-provider-mongodbatlas-checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
| with: | ||
| repository: mongodb/terraform-provider-mongodbatlas | ||
| ref: 133ee57735e0c8f2b22e74bbd9f8c3fdd8da2f9c | ||
| - name: Cleanup cloud-dev CFN Test | ||
| uses: ./.github/templates/clean-atlas-org | ||
| env: | ||
| MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.CLOUD_DEV_CFN_TEST_PUBLIC_KEY }} | ||
| MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.CLOUD_DEV_CFN_TEST_PRIVATE_KEY }} | ||
| MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_CFN_TEST_ORG_ID }} | ||
| MONGODB_ATLAS_BASE_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }} | ||
| MONGODB_ATLAS_CLEAN_RETRY_ATTEMPTS: "1" | ||
| cleanup-qa-env-rp: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: terraform-provider-mongodbatlas-checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
| with: | ||
| repository: mongodb/terraform-provider-mongodbatlas | ||
| ref: 133ee57735e0c8f2b22e74bbd9f8c3fdd8da2f9c | ||
| - name: Cleanup cloud-dev CFN Test GitHub | ||
| uses: ./.github/templates/clean-atlas-org | ||
| env: | ||
| MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.MONGODB_ATLAS_RP_PUBLIC_KEY_QA }} | ||
| MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.MONGODB_ATLAS_RP_PRIVATE_KEY_QA }} | ||
| MONGODB_ATLAS_ORG_ID: ${{ vars.MONGODB_ATLAS_RP_ORG_ID_QA }} | ||
| MONGODB_ATLAS_BASE_URL: https://cloud-qa.mongodb.com/ | ||
| MONGODB_ATLAS_CLEAN_RETRY_ATTEMPTS: "1" | ||
| cleanup-prod-env-general: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: terraform-provider-mongodbatlas-checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
| with: | ||
| repository: mongodb/terraform-provider-mongodbatlas | ||
| ref: 133ee57735e0c8f2b22e74bbd9f8c3fdd8da2f9c | ||
| - name: Cleanup cloud-dev CFN Test GitHub | ||
| uses: ./.github/templates/clean-atlas-org | ||
| env: | ||
| MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.ATLAS_PUBLIC_KEY_PUBLISHING }} | ||
| MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.ATLAS_PRIVATE_KEY_PUBLISHING }} | ||
| MONGODB_ATLAS_ORG_ID: ${{ secrets.ATLAS_ORG_ID_PUBLISHING }} | ||
| MONGODB_ATLAS_CLEAN_RETRY_ATTEMPTS: "1" | ||
| cleanup-prod-data-federation: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: terraform-provider-mongodbatlas-checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
| with: | ||
| repository: mongodb/terraform-provider-mongodbatlas | ||
| ref: 133ee57735e0c8f2b22e74bbd9f8c3fdd8da2f9c | ||
| - name: Cleanup cloud-dev CFN Test GitHub | ||
| uses: ./.github/templates/clean-atlas-org | ||
| env: | ||
| MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.ATLAS_PUBLIC_KEY_FOR_FEDERATION_PUBLISHING }} | ||
| MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.ATLAS_PRIVATE_KEY_FOR_FEDERATION_PUBLISHING }} | ||
| MONGODB_ATLAS_ORG_ID: ${{ vars.ATLAS_ORG_ID_FOR_FEDERATION_PUBLISHING }} | ||
| MONGODB_ATLAS_CLEAN_RETRY_ATTEMPTS: "1" | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i had to see the new file entirely instead of diff to understand this checkout name :-)