Windows Integration: Switch Azure-based CI to vanilla 2019 image.
This patch switches the Azure-based Windows workflows to using the vanilla `2019-Datacenter` Azure SKU following the deprecation of the old specialized `2019-Datacenter-with-Containers-smalldisk` SKU which was previously used. Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
This commit is contained in:
9
.github/workflows/windows-periodic.yml
vendored
9
.github/workflows/windows-periodic.yml
vendored
@@ -45,7 +45,7 @@ jobs:
|
||||
win_ver: [ltsc2019, ltsc2022]
|
||||
include:
|
||||
- win_ver: ltsc2019
|
||||
AZURE_IMG: "MicrosoftWindowsServer:WindowsServer:2019-Datacenter-with-Containers-smalldisk:17763.4131.230311"
|
||||
AZURE_IMG: "MicrosoftWindowsServer:WindowsServer:2019-Datacenter:17763.4377.230505"
|
||||
AZURE_RESOURCE_GROUP: ctrd-integration-ltsc2019-${{ github.run_id }}
|
||||
GOOGLE_BUCKET: "containerd-integration/logs/windows-ltsc2019/"
|
||||
- win_ver: ltsc2022
|
||||
@@ -128,13 +128,11 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: InstallContainerFeatureWS2022
|
||||
if: ${{ matrix.win_ver == 'ltsc2022' }}
|
||||
- name: InstallContainerFeature
|
||||
run: |
|
||||
ssh -i $HOME/.ssh/id_rsa ${{ env.SSH_OPTS }} azureuser@${{ env.VM_PUB_IP }} "powershell.exe -command { Install-WindowsFeature -Name 'Containers' -Restart }"
|
||||
|
||||
- name: WaitForVMToRestart
|
||||
if: ${{ matrix.win_ver == 'ltsc2022' }}
|
||||
timeout-minutes: 5
|
||||
run: |
|
||||
# give the vm 30 seconds to actually stop. SSH server might actually respond while server is shutting down.
|
||||
@@ -145,8 +143,7 @@ jobs:
|
||||
done
|
||||
echo "Connection reestablished. VM restarted succesfully."
|
||||
|
||||
- name: CreateNatNetworkWS2022
|
||||
if: ${{ matrix.win_ver == 'ltsc2022' }}
|
||||
- name: CreateNatNetwork
|
||||
run: |
|
||||
ssh -i $HOME/.ssh/id_rsa ${{ env.SSH_OPTS }} azureuser@${{ env.VM_PUB_IP }} "powershell.exe -command { curl.exe -L 'https://raw.githubusercontent.com/microsoft/SDN/master/Kubernetes/windows/hns.psm1' -o hns.psm1 }"
|
||||
ssh -i $HOME/.ssh/id_rsa ${{ env.SSH_OPTS }} azureuser@${{ env.VM_PUB_IP }} "powershell.exe -command { Import-Module .\hns.psm1 ; New-HnsNetwork -Type NAT -Name nat -AddressPrefix 172.19.208.0/20 -Gateway 172.19.208.1 }"
|
||||
|
||||
Reference in New Issue
Block a user