Skip to content

Commit af0413b

Browse files
committed
testing deploy.yml
1 parent 150afe9 commit af0413b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Multi-Stage CI/CD with Workspace
1+
name: EC2 Deploy
22

33
on:
44
push:
@@ -66,9 +66,9 @@ jobs:
6666
- name: Get EC2 Public IP & S3 Bucket Name
6767
working-directory: ${{ env.TF_WORKING_DIR }}
6868
run: |
69-
APP_IP=$(terraform output -raw instance_public_ip)
70-
VERIFIER_IP=$(terraform output -raw verifier_instance_public_ip)
71-
S3_BUCKET=$(terraform output -raw s3_log_bucket)
69+
APP_IP=$(terraform output -raw instance_public_ip | grep -oE '([0-9]{1,3}\.){3}[0-9]{1,3}' | head -n1)
70+
VERIFIER_IP=$(terraform output -raw verifier_instance_public_ip | grep -oE '([0-9]{1,3}\.){3}[0-9]{1,3}' | head -n1)
71+
S3_BUCKET=$(terraform output -raw s3_log_bucket | grep -oE 'techeazy-logs-[^[:space:]]+' | head -n1)
7272
7373
echo "📦 App IP: $APP_IP"
7474
echo "🔑 Verifier IP: $VERIFIER_IP"

0 commit comments

Comments
 (0)