-
Notifications
You must be signed in to change notification settings - Fork 5
Doc Improvements to Include Terraform #253
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
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,5 @@ | |
| # Generated configs | ||
| /terraform/ | ||
| /.controlplane/ | ||
|
|
||
| .qodo | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # CI Automation, Review Apps, Staging, and Promoting to Production | ||
|
|
||
| ## Setting up Tokens for CI Automation | ||
|
|
||
| This example uses Github Actions. The same applies to Circle CI and other similar CI/CD tools. | ||
|
|
||
| 1. Ensure that you have two orgs: | ||
| 1. `company-staging` (for staging deployments, developers have access) | ||
| 2. `company-production` (for production deployments, limited access) | ||
| 2. Create the token for staging org and set on Github repository secrets and variables: | ||
| 1. Go to the Control Plane UI for your organization's staging org | ||
| 2. Make a new service account called `github-actions-staging` | ||
| 3. Assign to the group `superusers` | ||
| 4. Click "Keys" and create a one with description "Github Actions" and copy the token (or download it). | ||
| 5. Add this key to your Github repository **secrets** as `CPLN_TOKEN_STAGING` | ||
| 6. Add another key to your Github repository **variables** as `CPLN_ORG_STAGING` with the name of the staging org, like `company-staging` | ||
| 3. Create the token for production org, and set on Github repository secrets and variables. | ||
| 1. Go to the Control Plane UI for your organization's production org | ||
| 2. Make a new service account called `github-actions-production` | ||
| 3. Assign to the group `superusers` | ||
| 4. Click "Keys" and create a one with description "Github Actions" and copy the token (or download it). | ||
| 5. Add this key to your Github repository **secrets** as `CPLN_TOKEN_PRODUCTION` | ||
| 6. Add another key to your Github repository **variables** as `CPLN_ORG_PRODUCTION` with the name of the production org, like `company-production` | ||
| 4. Create a few more ENV **variables** for the app name and the app prefix: | ||
| 1. `STAGING_APP_NAME` - the name of the app in Control Plane for staging, which is the GVC name, like `app-name-staging` | ||
| 2. `PRODUCTION_APP_NAME` - the name of the app in Control Plane for production, which is the GVC name, like `app-name-production` | ||
| 3. `REVIEW_APP_PREFIX` - the prefix for the review apps in Control Plane. The Review apps are named `$REVIEW_APP_PREFIX-pr-$PR_NUMBER` | ||
| 5. All in all, you should have 2 secrets and 5 variables set in your Github repository | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Use official "GitHub" capitalization.
The official spelling is "GitHub" with a capital "H", not "Github".
📝 Proposed fix
Apply similar changes to all other instances throughout the file (lines 10, 15, 16, 17, 21, 22, 23, 28).
Also applies to: 10-10, 15-16, 17-17, 21-23, 28-28
🧰 Tools
🪛 LanguageTool
[uncategorized] ~5-~5: The official name of this software platform is spelled with a capital “H”.
Context: ...ns for CI Automation This example uses Github Actions. The same applies to Circle CI ...
(GITHUB)
[grammar] ~5-~5: Ensure spelling is correct
Context: ...ses Github Actions. The same applies to Circle CI and other similar CI/CD tools. 1. Ensu...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
🤖 Prompt for AI Agents