Skip to content

Commit e1d2376

Browse files
fix: only first ip
1 parent 18374ee commit e1d2376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/terraform-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: |
3939
cd infrastructure/terraform
4040
terraform apply -auto-approve
41-
IP=$(terraform output -raw public_ip | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | tr -d '\r\n')
41+
IP=$(terraform output -raw public_ip | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' | head -n1 | tr -d '\r\n')
4242
echo "public_ip=$IP" >> $GITHUB_OUTPUT
4343
echo "Extrahierte IP: $IP"
4444
env:

0 commit comments

Comments
 (0)