28 lines
1.2 KiB
YAML
28 lines
1.2 KiB
YAML
name: Install MSI on Specific Runner
|
|
on: [push]
|
|
|
|
jobs:
|
|
# Вариант 1: Запуск только на одном (или первом свободном) self-hosted раннере
|
|
install_single:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Install MSI and Create Log
|
|
shell: powershell
|
|
run: |
|
|
Start-Process msiexec.exe -ArgumentList "/i C:\install\MAX.msi /qn /norestart" -Wait
|
|
"Installed successfully on $(hostname) at $(Get-Date)" | Out-File -FilePath "C:\install\git_MAX.txt" -Encoding utf8
|
|
|
|
# Вариант 2: Параллельный запуск на конкретном списке машин (Матрица)
|
|
deploy_all:
|
|
strategy:
|
|
matrix:
|
|
target_runner: [K4012-KOA, SECOND-RUNNER]
|
|
|
|
runs-on: ${{ matrix.target_runner }}
|
|
steps:
|
|
- name: Install MSI and Create Log
|
|
shell: powershell
|
|
run: |
|
|
# Используем другой файл (git_MAX2.txt), как вы указали
|
|
Start-Process msiexec.exe -ArgumentList "/i C:\install\MAX.msi /qn /norestart" -Wait
|
|
"Installed successfully on $(hostname) at $(Get-Date)" | Out-File -FilePath "C:\install\git_MAX2.txt" -Encoding utf8 |