Separate VM resizing and moving into two different scripts (#7584)

This commit is contained in:
Vasilii Polikarpov
2023-05-17 16:42:02 +02:00
committed by GitHub
parent eb53372646
commit 4ca86478ee
3 changed files with 88 additions and 15 deletions

View File

@@ -174,20 +174,28 @@ jobs:
- name: Move vm to cold storage and clear datastore tag
if: ${{ always() }}
run: |
$cpuCount = 3
$coresPerSocketCount = 3
$memory = 14336
./images.CI/macos/move-vm.ps1 `
-VMName "${{ env.VM_NAME }}" `
-TargetDataStore "${{ inputs.target_datastore }}" `
-VIServer "${{ secrets.VISERVER_V2 }}" `
-VIUserName "${{ secrets.VI_USER_NAME }}" `
-VIPassword "${{ secrets.VI_PASSWORD }}" `
-JobStatus "${{ job.status }}" `
-JobStatus "${{ job.status }}"
- name: Set VM size
run: |
$cpuCount = 3
$coresPerSocketCount = 3
$memory = 14336
./images.CI/macos/set-vm-size.ps1 `
-VMName "${{ env.VM_NAME }}" `
-CpuCount "$cpuCount" `
-CoresPerSocketCount "$coresPerSocketCount" `
-Memory "$memory"
-Memory "$memory" `
-VIServer "${{ secrets.VISERVER_V2 }}" `
-VIUserName "${{ secrets.VI_USER_NAME }}" `
-VIPassword "${{ secrets.VI_PASSWORD }}"
- name: Destroy VM (if build canceled only)
if: ${{ cancelled() }}