Skip to content

Commit 328f25f

Browse files
committed
attempt
1 parent 5f30098 commit 328f25f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/actions/deploy-to-control-plane/scripts/deploy.sh

+8
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ set -e
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
2326
WAIT_TIMEOUT=${WAIT_TIMEOUT:-900}
2427
if ! [[ "${WAIT_TIMEOUT}" =~ ^[0-9]+$ ]]; then
@@ -38,6 +41,8 @@ if ! timeout "${WAIT_TIMEOUT}" cpflow deploy-image -a "$APP_NAME" --run-release-
3841
exit 1
3942
fi
4043

44+
echo "🚀 Rocket launched!"
45+
4146
# Wait for all workloads to be ready
4247
echo "⏳ Waiting for all workloads to be ready (timeout: ${WAIT_TIMEOUT}s)"
4348
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 |
5257
exit 1
5358
fi
5459

60+
echo "⏳ Wait complete!"
61+
5562
# Extract app URL from deployment output
63+
echo "🙏 Extracting app URL"
5664
APP_URL=$(grep -oP 'https://[^[:space:]]*\.cpln\.app(?=\s|$)' "$TEMP_OUTPUT" | head -n1)
5765
if [ -z "$APP_URL" ]; then
5866
echo "❌ Error: Could not find app URL in deployment output"

.github/workflows/deploy-to-control-plane-review-app.yml

+3
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)