Skip to content

Commit 90b8f10

Browse files
committed
Set VM flavour based on env vars
1 parent d3628ef commit 90b8f10

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ on:
3939
description: Default network interface name
4040
type: string
4141
default: ens3
42-
vm_flavor:
43-
description: Flavor for the all-in-one VM
44-
type: string
45-
default: en1.medium
4642
OS_CLOUD:
4743
description: Name of cloud in clouds.yaml
4844
type: string
@@ -168,7 +164,7 @@ jobs:
168164
aio_vm_interface = "${{ env.VM_INTERFACE }}"
169165
aio_vm_name = "${{ env.VM_NAME }}"
170166
aio_vm_image = "${{ env.VM_IMAGE }}"
171-
aio_vm_flavor = "${{ env.VM_FLAVOR }}"
167+
aio_vm_flavor = "${{ vars.HOST_IMAGE_BUILD_FLAVOR }}"
172168
aio_vm_network = "${{ vars.HOST_IMAGE_BUILD_NETWORK }}"
173169
aio_vm_subnet = "${{ vars.HOST_IMAGE_BUILD_SUBNET }}"
174170
aio_vm_volume_size = "${{ env.VM_VOLUME_SIZE }}"
@@ -179,7 +175,6 @@ jobs:
179175
SSH_USERNAME: "${{ inputs.ssh_username }}"
180176
VM_NAME: "skc-ci-aio-${{ inputs.neutron_plugin }}-${{ github.run_id }}"
181177
VM_IMAGE: ${{ steps.image_name.outputs.image_name }}
182-
VM_FLAVOR: ${{ inputs.vm_flavor }}
183178
VM_INTERFACE: ${{ inputs.vm_interface }}
184179
VM_VOLUME_SIZE: ${{ inputs.upgrade && '65' || '50' }}
185180
VM_TAGS: '["skc-ci-aio", "PR=${{ github.event.number }}"]'

0 commit comments

Comments
 (0)