File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
actions/setup-environment Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 19
19
gem install cpflow -v 4.1.0
20
20
cpflow --version
21
21
22
- - name : cpln profile
22
+ - name : Setup Control Plane Profile
23
23
shell : bash
24
24
run : |
25
- cpln profile update default
25
+ if [ -z "$CPLN_TOKEN" ]; then
26
+ echo " Error: CPLN_TOKEN environment variable is not set"
27
+ exit 1
28
+ fi
29
+
30
+ if [ -z "$CPLN_ORG" ]; then
31
+ echo " Error: CPLN_ORG environment variable is not set"
32
+ exit 1
33
+ fi
34
+
35
+ echo "Setting up Control Plane profile..."
36
+ echo "Organization: $CPLN_ORG"
37
+ cpln profile update default --org "$CPLN_ORG" --token "$CPLN_TOKEN"
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ concurrency:
13
13
14
14
env :
15
15
APP_NAME : qa-react-webpack-rails-tutorial-pr-${{ github.event.pull_request.number || github.event.issue.number }}
16
- CPLN_ORG : ${{ secrets.CPLN_ORG }}
16
+ CPLN_ORG : ${{ secrets.CPLN_ORG_STAGING }}
17
+ CPLN_TOKEN : ${{ secrets.CPLN_TOKEN_STAGING }}
17
18
PR_NUMBER : ${{ github.event.pull_request.number || github.event.issue.number }}
18
19
19
20
jobs :
51
52
- name : Deploy to Control Plane
52
53
id : deploy
53
54
uses : ./.github/actions/deploy-to-control-plane
55
+ env :
56
+ CPLN_TOKEN : ${{ secrets.CPLN_TOKEN_STAGING }}
57
+ CPLN_ORG : ${{ secrets.CPLN_ORG_STAGING }}
54
58
with :
55
59
app_name : ${{ env.APP_NAME }}
56
60
org : ${{ env.CPLN_ORG }}
You can’t perform that action at this time.
0 commit comments