Skip to content

Commit 269c684

Browse files
committed
fix org
1 parent 1ef522b commit 269c684

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.controlplane/controlplane.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,24 @@ aliases:
3939

4040
apps:
4141
react-webpack-rails-tutorial-production:
42-
# Simulate Production Version
42+
# Simulate Production Version. Create with this command:
43+
# cpflow apply-template app postgres redis daily-task rails -a react-webpack-rails-tutorial-production -o shakacode-open-source-examples-production
4344
<<: *common
4445
# Don't allow overriding the org and app by ENV vars b/c production is sensitive!
4546
allow_org_override_by_env: false
4647
allow_app_override_by_env: false
4748

48-
# Use a different organization for production.
49-
cpln_org: shakacode-open-source-examples
49+
# Use a different organization only for production.
50+
cpln_org: shakacode-open-source-examples-production
5051

5152
upstream: react-webpack-rails-tutorial-staging
5253

5354
react-webpack-rails-tutorial-staging:
5455
<<: *common
55-
# QA Apps are like Heroku review apps, but the use `prefix` so you can run a commmand like
56-
# this to create a QA app for the tutorial app.
57-
# `cpflow setup gvc postgres redis rails -a qa-react-webpack-rails-tutorial-pr-1234`
5856
qa-react-webpack-rails-tutorial:
57+
# Review Apps are like Heroku review apps, but the use `prefix` so you can run a command like
58+
# this to create a QA app for the tutorial app.
59+
# `cpflow setup-app -a qa-react-webpack-rails-tutorial-pr-1234`
5960
<<: *common
6061
# Order matters!
6162
setup_app_templates:

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ jobs:
1717
promote-to-production:
1818
runs-on: ubuntu-latest
1919
if: github.event.inputs.confirm_promotion == 'promote'
20-
20+
2121
env:
2222
APP_NAME: ${{ vars.PRODUCTION_APP_NAME }}
2323
CPLN_ORG: ${{ vars.CPLN_ORG_PRODUCTION }}
2424
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_PRODUCTION }}
2525
UPSTREAM_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}
26-
26+
2727
steps:
2828
- name: Checkout code
2929
uses: actions/checkout@v4
30-
30+
3131
- name: Setup Environment
3232
uses: ./.github/actions/setup-environment
3333
with:
@@ -39,13 +39,13 @@ jobs:
3939
run: |
4040
echo "🚀 Starting promotion from staging to production... for app ${APP_NAME}"
4141
42-
if ! cpflow promote-app-from-upstream -a "${APP_NAME}" -t "${UPSTREAM_TOKEN}" --org "${CPLN_ORG}"; then
42+
if ! cpflow promote-app-from-upstream -a "${APP_NAME}" -t "${UPSTREAM_TOKEN}" --org "${CPLN_ORG}" --verbose --trace ; then
4343
echo "❌ Failed to promote staging to production"
4444
exit 1
4545
fi
4646
4747
echo "✅ Successfully promoted staging to production"
48-
48+
4949
- name: Create GitHub Release
5050
if: success()
5151
env:

0 commit comments

Comments
 (0)