Skip to content

Commit 6be8774

Browse files
committed
trying to fix
1 parent 3100763 commit 6be8774

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ jobs:
6363
-var "stage=${{ github.event.inputs.stage }}"
6464
6565
# ✅ Get EC2 IPs & S3 Bucket
66-
- name: Get EC2 Public IP & S3 Bucket Name
67-
working-directory: ${{ env.TF_WORKING_DIR }}
66+
- name: Get EC2s Public IPs & S3 Bucket Name
6867
run: |
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)
68+
echo "INSTANCE_IP=$(terraform output -raw instance_public_ip)" >> $GITHUB_ENV
69+
echo "VERIFIER_IP=$(terraform output -raw verifier_instance_public_ip)" >> $GITHUB_ENV
70+
echo "S3_BUCKET=$(terraform output -raw s3_log_bucket)" >> $GITHUB_ENV
7271
73-
echo "📦 App IP: $APP_IP"
72+
echo "📦 App IP: $INSTANCE_IP"
7473
echo "🔑 Verifier IP: $VERIFIER_IP"
7574
echo "🪣 S3 Bucket: $S3_BUCKET"
7675
76+
7777
# ✅ Wait for App Initialization
7878
- name: Wait for App Initialization
7979
run: |

0 commit comments

Comments
 (0)