Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/call-build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,26 @@ jobs:
username: ${{ inputs.username }}
password: ${{ secrets.token }}

# https://github.com/actions/runner-images/issues/12199
# https://github.com/moby/moby/issues/48093
# https://support.microsoft.com/en-us/topic/gettemppath-changes-in-windows-february-cumulative-update-preview-4cc631fb-9d97-4118-ab6d-f643cd0a7259#ID0EDF
- name: Change system temp directory to the drive having sufficient disk space
id: relocate-system-temp-dir
run: |
$ErrorActionPreference = "Stop"
if (Test-Path -Path "D:\") {
$newSystemTempDir = "D:\SystemTemp"
New-Item -ItemType Directory -Path "${newSystemTempDir}" -Force
$acl = New-Object System.Security.AccessControl.DirectorySecurity
$acl.SetSecurityDescriptorSddlForm("O:SYG:SYD:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)")
Set-Acl "${newSystemTempDir}" -AclObject ${acl}
[Environment]::SetEnvironmentVariable("SYSTEMTEMP", "${newSystemTempDir}", [EnvironmentVariableTarget]::Machine)
Restart-Service docker
} else {
Write-Warning "Drive D doesn't exist, so there is no disk to relocate system temp directory"
}
shell: pwsh

- name: Pull the last release image to speed up the build with a cache
continue-on-error: true
run: |
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pr-image-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,26 @@ jobs:
flavor: |
suffix=-windows-${{ matrix.windows-base-version }}

# https://github.com/actions/runner-images/issues/12199
# https://github.com/moby/moby/issues/48093
# https://support.microsoft.com/en-us/topic/gettemppath-changes-in-windows-february-cumulative-update-preview-4cc631fb-9d97-4118-ab6d-f643cd0a7259#ID0EDF
- name: Change system temp directory to the drive having sufficient disk space
id: relocate-system-temp-dir
run: |
$ErrorActionPreference = "Stop"
if (Test-Path -Path "D:\") {
$newSystemTempDir = "D:\SystemTemp"
New-Item -ItemType Directory -Path "${newSystemTempDir}" -Force
$acl = New-Object System.Security.AccessControl.DirectorySecurity
$acl.SetSecurityDescriptorSddlForm("O:SYG:SYD:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)")
Set-Acl "${newSystemTempDir}" -AclObject ${acl}
[Environment]::SetEnvironmentVariable("SYSTEMTEMP", "${newSystemTempDir}", [EnvironmentVariableTarget]::Machine)
Restart-Service docker
} else {
Write-Warning "Drive D doesn't exist, so there is no disk to relocate system temp directory"
}
shell: pwsh

- name: Build the windows images
id: build
run: |
Expand Down
Loading