Skip to content

Commit ae36413

Browse files
committed
feat: update deploy terraform action in CI
To be able to set the data and boot disks types and snapshots from which to restore
1 parent 4c0d094 commit ae36413

File tree

1 file changed

+18
-0
lines changed
  • .github/workflows/actions/deploy-terraform-infrastructure

1 file changed

+18
-0
lines changed

.github/workflows/actions/deploy-terraform-infrastructure/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,23 @@ inputs:
3636
google_compute_instance_boot_disk_size:
3737
description: Google Cloud attached boot disk size in GB.
3838
required: true
39+
google_compute_instance_boot_disk_type:
40+
description: Google Cloud type of attached boot disk.
41+
required: false
42+
default: "pd-standard"
43+
google_compute_instance_boot_disk_snapshot:
44+
description: Google Cloud snapshot used to restore the boot disk.
45+
required: false
3946
google_compute_instance_data_disk_size:
4047
description: Google Cloud attached data disk size in GB.
4148
required: true
49+
google_compute_instance_data_disk_type:
50+
description: Google Cloud type of attached data disk.
51+
required: false
52+
default: "pd-standard"
53+
google_compute_instance_data_disk_snapshot:
54+
description: Google Cloud snapshot used to restore the data disk.
55+
required: false
4256
google_application_credentials:
4357
description: Google Cloud application credentials (service account).
4458
required: true
@@ -174,7 +188,11 @@ runs:
174188
google_zone = "${{ inputs.google_zone }}"
175189
google_machine_type = "${{ inputs.google_machine_type }}"
176190
google_compute_instance_boot_disk_size = "${{ inputs.google_compute_instance_boot_disk_size }}"
191+
google_compute_instance_boot_disk_type = "${{ inputs.google_compute_instance_boot_disk_type }}"
192+
google_compute_instance_boot_disk_snapshot = "${{ inputs.google_compute_instance_boot_disk_snapshot }}"
177193
google_compute_instance_data_disk_size = "${{ inputs.google_compute_instance_data_disk_size }}"
194+
google_compute_instance_data_disk_type = "${{ inputs.google_compute_instance_data_disk_type }}"
195+
google_compute_instance_data_disk_snapshot = "${{ inputs.google_compute_instance_data_disk_snapshot }}"
178196
google_service_credentials_json_file = "./google-application-credentials.json"
179197
mithril_use_p2p_network = "${{ inputs.mithril_use_p2p_network }}"
180198
mithril_api_domain = "${{ inputs.mithril_api_domain }}"

0 commit comments

Comments
 (0)