mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Add patch to update ca-certificates on windows-2016
This commit is contained in:
parent
17ef667e04
commit
d7c3e33a96
@ -562,6 +562,12 @@ if($version -lt "5.5") {
|
|||||||
} else {
|
} else {
|
||||||
$enable_extensions += ('opcache')
|
$enable_extensions += ('opcache')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Remove patch once root certificates are updated on image.
|
||||||
|
if($env:ImageOS -eq 'win16') {
|
||||||
|
$cert_source = 'Curl'
|
||||||
|
}
|
||||||
|
|
||||||
Enable-PhpExtension -Extension $enable_extensions -Path $php_dir
|
Enable-PhpExtension -Extension $enable_extensions -Path $php_dir
|
||||||
Update-PhpCAInfo -Path $php_dir -Source $cert_source
|
Update-PhpCAInfo -Path $php_dir -Source $cert_source
|
||||||
Copy-Item -Path $dist\..\src\configs\*.json -Destination $env:RUNNER_TOOL_CACHE
|
Copy-Item -Path $dist\..\src\configs\*.json -Destination $env:RUNNER_TOOL_CACHE
|
||||||
|
Loading…
Reference in New Issue
Block a user