mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
[Ubuntu] Add MS SQL Tools version (#2046)
* Add MS SQL Tools version * Minor fix * Move MS SQL tools installation to separated file * Minor fix * accept yula
This commit is contained in:
committed by
GitHub
parent
efcf173e49
commit
a454d66e7f
@@ -18,18 +18,33 @@ function Get-MySQLVersion {
|
||||
return "MySQL $mySQLVersion"
|
||||
}
|
||||
|
||||
function Get-SQLCmdVersion {
|
||||
$sqlcmdVersion = sqlcmd -? | Select-String -Pattern "Version" | Take-OutputPart -Part 1
|
||||
return "sqlcmd $sqlcmdVersion"
|
||||
}
|
||||
|
||||
function Build-MySQLSection {
|
||||
$output = ""
|
||||
|
||||
$output += New-MDHeader "MySQL" -Level 4
|
||||
$output += New-MDList -Style Unordered -Lines @(
|
||||
(Get-MySQLVersion ),
|
||||
"MySQL Server (user:root password:root)",
|
||||
"MS SQL Server Client Tools"
|
||||
"MySQL Server (user:root password:root)"
|
||||
)
|
||||
$output += New-MDCode -Lines @(
|
||||
"MySQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'"
|
||||
)
|
||||
|
||||
return $output
|
||||
}
|
||||
|
||||
function Build-MSSQLToolsSection {
|
||||
$output = ""
|
||||
|
||||
$output += New-MDHeader "MS SQL Server Client Tools" -Level 4
|
||||
$output += New-MDList -Style Unordered -Lines @(
|
||||
(Get-SQLCmdVersion)
|
||||
)
|
||||
|
||||
return $output
|
||||
}
|
||||
Reference in New Issue
Block a user