File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -39,23 +39,24 @@ aliases:
39
39
40
40
apps :
41
41
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
43
44
<< : *common
44
45
# Don't allow overriding the org and app by ENV vars b/c production is sensitive!
45
46
allow_org_override_by_env : false
46
47
allow_app_override_by_env : false
47
48
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
50
51
51
52
upstream : react-webpack-rails-tutorial-staging
52
53
53
54
react-webpack-rails-tutorial-staging :
54
55
<< : *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`
58
56
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`
59
60
<< : *common
60
61
# Order matters!
61
62
setup_app_templates :
Original file line number Diff line number Diff line change @@ -17,17 +17,17 @@ jobs:
17
17
promote-to-production :
18
18
runs-on : ubuntu-latest
19
19
if : github.event.inputs.confirm_promotion == 'promote'
20
-
20
+
21
21
env :
22
22
APP_NAME : ${{ vars.PRODUCTION_APP_NAME }}
23
23
CPLN_ORG : ${{ vars.CPLN_ORG_PRODUCTION }}
24
24
CPLN_TOKEN : ${{ secrets.CPLN_TOKEN_PRODUCTION }}
25
25
UPSTREAM_TOKEN : ${{ secrets.CPLN_TOKEN_STAGING }}
26
-
26
+
27
27
steps :
28
28
- name : Checkout code
29
29
uses : actions/checkout@v4
30
-
30
+
31
31
- name : Setup Environment
32
32
uses : ./.github/actions/setup-environment
33
33
with :
@@ -39,13 +39,13 @@ jobs:
39
39
run : |
40
40
echo "🚀 Starting promotion from staging to production... for app ${APP_NAME}"
41
41
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
43
43
echo "❌ Failed to promote staging to production"
44
44
exit 1
45
45
fi
46
46
47
47
echo "✅ Successfully promoted staging to production"
48
-
48
+
49
49
- name : Create GitHub Release
50
50
if : success()
51
51
env :
You can’t perform that action at this time.
0 commit comments