File tree 1 file changed +8
-15
lines changed
1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change 14
14
if : github.event.inputs.confirm_promotion == 'promote'
15
15
16
16
env :
17
- APP_NAME : react-webpack-rails-tutorial
18
- CPLN_ORG : ${{ secrets.CPLN_ORG }}
19
- UPSTREAM_TOKEN : ${{ secrets.STAGING_TOKEN }}
17
+ APP_NAME : ${{ vars.STAGING_APP_NAME }}
18
+ UPSTREAM_TOKEN : ${{ secrets.CPLN_TOKEN_STAGING }}
20
19
21
20
steps :
22
21
- name : Checkout code
@@ -25,19 +24,13 @@ jobs:
25
24
- name : Setup Environment
26
25
uses : ./.github/actions/setup-environment
27
26
env :
28
- CPLN_TOKEN : ${{ secrets.CPLN_TOKEN }}
27
+ CPLN_TOKEN : ${{ secrets.CPLN_TOKEN_PRODUCTION }}
29
28
30
- - name : Promote Staging to Production
31
- id : promote
32
- run : |
33
- echo "🚀 Starting promotion from staging to production..."
34
-
35
- if ! cpflow promote-app-from-upstream -a "${APP_NAME}" -t "${UPSTREAM_TOKEN}" --org "${CPLN_ORG}"; then
36
- echo "❌ Failed to promote staging to production"
37
- exit 1
38
- fi
39
-
40
- echo "✅ Successfully promoted staging to production"
29
+ - name : Copy Image from Staging
30
+ run : cpflow copy-image-from-upstream -a "${APP_NAME}" -t "${UPSTREAM_TOKEN}" -v
31
+
32
+ - name : Deploy Image to Production
33
+ run : cpflow deploy-image -v
41
34
42
35
- name : Create GitHub Release
43
36
if : success()
You can’t perform that action at this time.
0 commit comments