File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ jobs:
134
134
aio_vm_flavor = "${{ env.VM_FLAVOR }}"
135
135
aio_vm_network = "${{ env.VM_NETWORK }}"
136
136
aio_vm_subnet = "${{ env.VM_SUBNET }}"
137
+ aio_vm_tags = ${{ env.VM_TAGS }}
137
138
EOF
138
139
working-directory : ${{ github.workspace }}/terraform/aio
139
140
env :
@@ -144,6 +145,7 @@ jobs:
144
145
VM_NETWORK : ${{ inputs.vm_network }}
145
146
VM_SUBNET : ${{ inputs.vm_subnet }}
146
147
VM_INTERFACE : ${{ inputs.vm_interface }}
148
+ VM_TAGS : ' ["skc-ci-aio", "PR=${{ github.event.number }}"]'
147
149
148
150
- name : Terraform Plan
149
151
run : terraform plan
Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ variable "aio_vm_volume_size" {
38
38
default = 35
39
39
}
40
40
41
+ variable "aio_vm_tags" {
42
+ type = list (string )
43
+ default = []
44
+ }
45
+
41
46
locals {
42
47
image_is_uuid = length (regexall (" ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" , var. aio_vm_image )) > 0
43
48
}
@@ -69,6 +74,8 @@ resource "openstack_compute_instance_v2" "kayobe-aio" {
69
74
destination_type = " volume"
70
75
delete_on_termination = true
71
76
}
77
+
78
+ tags = var. aio_vm_tags
72
79
}
73
80
74
81
# Wait for the instance to be accessible via SSH before progressing.
You can’t perform that action at this time.
0 commit comments