Skip to content

Commit c334031

Browse files
committed
attempt
1 parent ee5c4f4 commit c334031

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ if ! timeout "${WAIT_TIMEOUT}" cpflow deploy-image -a "$APP_NAME" --run-release-
3838
exit 1
3939
fi
4040

41-
# Extract app URL from deployment output
42-
APP_URL=$(grep -oP 'https://[^[:space:]]*\.cpln\.app(?=\s|$)' "$TEMP_OUTPUT" | head -n1)
43-
if [ -z "$APP_URL" ]; then
44-
echo "❌ Error: Could not find app URL in deployment output"
45-
exit 1
46-
fi
47-
4841
# Wait for all workloads to be ready
4942
echo "⏳ Waiting for all workloads to be ready (timeout: ${WAIT_TIMEOUT}s)"
5043
if ! timeout "${WAIT_TIMEOUT}" bash -c "cpflow ps:wait -a \"$APP_NAME\"" 2>&1 | tee -a "$TEMP_OUTPUT"; then
@@ -59,6 +52,13 @@ if ! timeout "${WAIT_TIMEOUT}" bash -c "cpflow ps:wait -a \"$APP_NAME\"" 2>&1 |
5952
exit 1
6053
fi
6154

55+
# Extract app URL from deployment output
56+
APP_URL=$(grep -oP 'https://[^[:space:]]*\.cpln\.app(?=\s|$)' "$TEMP_OUTPUT" | head -n1)
57+
if [ -z "$APP_URL" ]; then
58+
echo "❌ Error: Could not find app URL in deployment output"
59+
exit 1
60+
fi
61+
6262
echo "✅ Deployment successful"
6363
echo "🌐 App URL: $APP_URL"
6464
echo "APP_URL=$APP_URL" >> "$GITHUB_OUTPUT"

.github/actions/setup-environment/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
run: |
2525
sudo npm install -g @controlplane/[email protected]
2626
cpln --version
27-
gem install cpflow -v 4.1.0
27+
gem install cpflow -v 4.1.1
2828
cpflow --version
2929
3030
- name: Setup Control Plane Profile

0 commit comments

Comments
 (0)