File tree 2 files changed +11
-0
lines changed
actions/deploy-to-control-plane/scripts
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 19
19
: " ${APP_NAME:? APP_NAME environment variable is required} "
20
20
: " ${CPLN_ORG:? CPLN_ORG environment variable is required} "
21
21
22
+ auth_check=$( cpln profile get 2>&1 )
23
+ echo " $auth_check "
24
+
22
25
# Set and validate deployment timeout
23
26
WAIT_TIMEOUT=${WAIT_TIMEOUT:- 900}
24
27
if ! [[ " ${WAIT_TIMEOUT} " =~ ^[0-9]+$ ]]; then
@@ -38,6 +41,8 @@ if ! timeout "${WAIT_TIMEOUT}" cpflow deploy-image -a "$APP_NAME" --run-release-
38
41
exit 1
39
42
fi
40
43
44
+ echo " 🚀 Rocket launched!"
45
+
41
46
# Wait for all workloads to be ready
42
47
echo " ⏳ Waiting for all workloads to be ready (timeout: ${WAIT_TIMEOUT} s)"
43
48
if ! timeout " ${WAIT_TIMEOUT} " bash -c " cpflow ps:wait -a \" $APP_NAME \" " 2>&1 | tee -a " $TEMP_OUTPUT " ; then
@@ -52,7 +57,10 @@ if ! timeout "${WAIT_TIMEOUT}" bash -c "cpflow ps:wait -a \"$APP_NAME\"" 2>&1 |
52
57
exit 1
53
58
fi
54
59
60
+ echo " ⏳ Wait complete!"
61
+
55
62
# Extract app URL from deployment output
63
+ echo " 🙏 Extracting app URL"
56
64
APP_URL=$( grep -oP ' https://[^[:space:]]*\.cpln\.app(?=\s|$)' " $TEMP_OUTPUT " | head -n1)
57
65
if [ -z " $APP_URL " ]; then
58
66
echo " ❌ Error: Could not find app URL in deployment output"
Original file line number Diff line number Diff line change @@ -367,6 +367,9 @@ jobs:
367
367
with :
368
368
token : ${{ secrets.CPLN_TOKEN_STAGING }}
369
369
org : ${{ vars.CPLN_ORG_STAGING }}
370
+
371
+ - name : Confirm Auth
372
+ run : cpln profile get
370
373
371
374
- name : Update Status - Deploying
372
375
uses : actions/github-script@v7
You can’t perform that action at this time.
0 commit comments