File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
actions/deploy-to-control-plane/scripts Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1919: " ${APP_NAME:? APP_NAME environment variable is required} "
2020: " ${CPLN_ORG:? CPLN_ORG environment variable is required} "
2121
22+ auth_check=$( cpln profile get 2>&1 )
23+ echo " $auth_check "
24+
2225# Set and validate deployment timeout
2326WAIT_TIMEOUT=${WAIT_TIMEOUT:- 900}
2427if ! [[ " ${WAIT_TIMEOUT} " =~ ^[0-9]+$ ]]; then
@@ -38,6 +41,8 @@ if ! timeout "${WAIT_TIMEOUT}" cpflow deploy-image -a "$APP_NAME" --run-release-
3841 exit 1
3942fi
4043
44+ echo " 🚀 Rocket launched!"
45+
4146# Wait for all workloads to be ready
4247echo " ⏳ Waiting for all workloads to be ready (timeout: ${WAIT_TIMEOUT} s)"
4348if ! 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 |
5257 exit 1
5358fi
5459
60+ echo " ⏳ Wait complete!"
61+
5562# Extract app URL from deployment output
63+ echo " 🙏 Extracting app URL"
5664APP_URL=$( grep -oP ' https://[^[:space:]]*\.cpln\.app(?=\s|$)' " $TEMP_OUTPUT " | head -n1)
5765if [ -z " $APP_URL " ]; then
5866 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:
367367 with :
368368 token : ${{ secrets.CPLN_TOKEN_STAGING }}
369369 org : ${{ vars.CPLN_ORG_STAGING }}
370+
371+ - name : Confirm Auth
372+ run : cpln profile get
370373
371374 - name : Update Status - Deploying
372375 uses : actions/github-script@v7
You can’t perform that action at this time.
0 commit comments