File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Multi-Stage CI/CD with Workspace
1
+ name : EC2 Deploy
2
2
3
3
on :
4
4
push :
66
66
- name : Get EC2 Public IP & S3 Bucket Name
67
67
working-directory : ${{ env.TF_WORKING_DIR }}
68
68
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 )
72
72
73
73
echo "📦 App IP: $APP_IP"
74
74
echo "🔑 Verifier IP: $VERIFIER_IP"
You can’t perform that action at this time.
0 commit comments