@@ -318,7 +318,7 @@ jobs:
318
318
backend_prefix : terraform-google-lb-http/
319
319
env_name : tf-ci-lb-https-gke-pr
320
320
example_dir : examples/https-gke
321
- infra_dir : git/ examples/https-gke/gke-node-port
321
+ infra_dir : examples/https-gke/gke-node-port
322
322
region : us-central1
323
323
zone : us-central1-f
324
324
TF_VAR_network_name : tf-ci-lb-https-gke-pr
@@ -328,10 +328,14 @@ jobs:
328
328
init_script : |
329
329
# Export Terraform vars from infra state
330
330
cd gke-node-port
331
+ MIG=$(terraform output instance_group)
332
+ NODE_TAG=$(terraform output node_tag)
333
+ NETWORK_NAME=$(terraform output network_name)
334
+
331
335
cat > ../terraform.tfvars <<EOF
332
- backend = "$(terraform output instance_group) "
333
- target_tags = "$(terraform output node_tag) "
334
- network_name = "$(terraform output network_name) "
336
+ backend = "${MIG} "
337
+ target_tags = "${NODE_TAG} "
338
+ network_name = "${NETWORK_NAME} "
335
339
EOF
336
340
cat ../terraform.tfvars
337
341
@@ -365,7 +369,7 @@ jobs:
365
369
backend_prefix : terraform-google-lb-http/
366
370
env_name : tf-ci-lb-https-gke-pr
367
371
example_dir : examples/https-gke
368
- infra_dir : git/ examples/https-gke/gke-node-port
372
+ infra_dir : examples/https-gke/gke-node-port
369
373
region : us-central1
370
374
zone : us-central1-f
371
375
TF_VAR_network_name : tf-ci-lb-https-gke-pr
@@ -375,10 +379,14 @@ jobs:
375
379
init_script : |
376
380
# Export Terraform vars from infra state
377
381
cd gke-node-port
382
+ MIG=$(terraform output instance_group)
383
+ NODE_TAG=$(terraform output node_tag)
384
+ NETWORK_NAME=$(terraform output network_name)
385
+
378
386
cat > ../terraform.tfvars <<EOF
379
- backend = "$(terraform output instance_group) "
380
- target_tags = "$(terraform output node_tag) "
381
- network_name = "$(terraform output network_name) "
387
+ backend = "${MIG} "
388
+ target_tags = "${NODE_TAG} "
389
+ network_name = "${NETWORK_NAME} "
382
390
EOF
383
391
cat ../terraform.tfvars
384
392
0 commit comments