Skip to content

Commit 7c34a48

Browse files
committed
wip
1 parent 4bf2c03 commit 7c34a48

4 files changed

+16
-25
lines changed

.github/workflows/delete-review-app.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
env:
1616
CPLN_ORG: ${{ secrets.CPLN_ORG }}
17-
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN }}
17+
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}
1818
APP_NAME: qa-react-webpack-rails-tutorial-pr-${{ github.event.pull_request.number || github.event.issue.number }}
1919
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
2020

@@ -34,7 +34,7 @@ jobs:
3434
- name: Validate Required Secrets
3535
run: |
3636
missing_secrets=()
37-
for secret in "CPLN_TOKEN" "CPLN_ORG"; do
37+
for secret in "CPLN_TOKEN_STAGING" "CPLN_ORG_STAGING"; do
3838
if [ -z "${!secret}" ]; then
3939
missing_secrets+=("$secret")
4040
fi
@@ -136,7 +136,7 @@ jobs:
136136
org: ${{ env.CPLN_ORG }}
137137
github_token: ${{ secrets.GITHUB_TOKEN }}
138138
env:
139-
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN }}
139+
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}
140140

141141
- name: Update Delete Status
142142
if: always()

.github/workflows/deploy-to-control-plane.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616
env:
1717
APP_NAME: qa-react-webpack-rails-tutorial-pr-${{ github.event.pull_request.number || github.event.issue.number }}
1818
CPLN_ORG: ${{ secrets.CPLN_ORG }}
19-
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN }}
19+
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}
2020
PR_NUMBER: ${{ github.event.pull_request.number || github.event.issue.number }}
2121

2222
jobs:
@@ -53,7 +53,7 @@ jobs:
5353
- name: Validate Required Secrets
5454
run: |
5555
missing_secrets=()
56-
for secret in "CPLN_TOKEN" "CPLN_ORG"; do
56+
for secret in "CPLN_TOKEN_STAGING" "CPLN_ORG_STAGING"; do
5757
if [ -z "${!secret}" ]; then
5858
missing_secrets+=("$secret")
5959
fi
@@ -292,4 +292,4 @@ jobs:
292292
repo: context.repo.repo,
293293
issue_number: context.payload.issue.number,
294294
body: helpMessage
295-
});
295+
});

.github/workflows/help-command.yml

+9-18
Original file line numberDiff line numberDiff line change
@@ -38,37 +38,28 @@ jobs:
3838
'- Provides a unique URL to preview your changes',
3939
'- Shows build and deployment progress in real-time',
4040
'',
41-
'**Required Environment Variables:**',
42-
'- `CPLN_TOKEN`: Control Plane authentication token',
43-
'- `CPLN_ORG`: Control Plane organization name',
44-
'',
45-
'**Optional Configuration:**',
46-
'- `WAIT_TIMEOUT`: Deployment timeout in seconds (default: 900)',
47-
' - Must be a positive integer',
48-
' - Can be set in GitHub Actions variables',
49-
' - Applies to both deployment and workload readiness checks',
50-
'',
5141
'### `/delete-review-app`',
5242
'Deletes the review app associated with this PR.',
5343
'- Removes all resources from Control Plane',
5444
'- Helpful for cleaning up when you\'re done testing',
5545
'- Can be re-deployed later using `/deploy`',
5646
'',
57-
'**Required Environment Variables:**',
58-
'- `CPLN_TOKEN`: Control Plane authentication token',
59-
'- `CPLN_ORG`: Control Plane organization name',
60-
'',
6147
'### `/help`',
6248
'Shows this help message explaining available commands and configuration.',
6349
'',
6450
'---',
6551
'**Note:** These commands only work in pull request comments.',
6652
'',
6753
'**Environment Setup:**',
68-
'1. Set required secrets in your repository settings:',
69-
' - `CPLN_TOKEN`',
70-
' - `CPLN_ORG`',
71-
'2. Optional: Configure `WAIT_TIMEOUT` in GitHub Actions variables to customize deployment timeout'
54+
'**Required Environment Variables:**',
55+
'- `CPLN_TOKEN_STAGING`: Control Plane authentication token',
56+
'- `CPLN_ORG_STAGING`: Control Plane organization name',
57+
'',
58+
'**Optional Configuration:**',
59+
'- `WAIT_TIMEOUT`: Deployment timeout in seconds (default: 900)',
60+
' - Must be a positive integer',
61+
' - Can be set in GitHub Actions variables',
62+
' - Applies to both deployment and workload readiness checks',
7263
].join('\n');
7364
7465
console.log('Issue number:', github.context.payload.issue.number);

.github/workflows/promote-staging-to-production.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Environment
2626
uses: ./.github/actions/setup-environment
2727
env:
28-
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN }}
28+
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}
2929

3030
- name: Promote Staging to Production
3131
id: promote

0 commit comments

Comments
 (0)