Обновить .gitea/workflows/install.yaml
This commit is contained in:
@@ -2,33 +2,27 @@ name: Install MSI on Specific Runner
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install_msi:
|
# Вариант 1: Запуск только на одном (или первом свободном) self-hosted раннере
|
||||||
# Указываем метку, которую мы прописали в config.yaml
|
install_single:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Install MSI and Create Log
|
- name: Install MSI and Create Log
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
# 1. Тихая установка MSI
|
|
||||||
# /i - установка, /qn - без интерфейса, /norestart - без перезагрузки
|
|
||||||
Start-Process msiexec.exe -ArgumentList "/i C:\install\MAX.msi /qn /norestart" -Wait
|
Start-Process msiexec.exe -ArgumentList "/i C:\install\MAX.msi /qn /norestart" -Wait
|
||||||
|
|
||||||
# 2. Создание текстового файла
|
|
||||||
"Installed successfully on $(hostname) at $(Get-Date)" | Out-File -FilePath "C:\install\git_MAX.txt" -Encoding utf8
|
"Installed successfully on $(hostname) at $(Get-Date)" | Out-File -FilePath "C:\install\git_MAX.txt" -Encoding utf8
|
||||||
deploy_all:
|
|
||||||
|
# Вариант 2: Параллельный запуск на конкретном списке машин (Матрица)
|
||||||
|
deploy_all:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
# Перечислите здесь уникальные имена или метки всех ваших машин
|
target_runner: [K4012-KOA, SECOND-RUNNER]
|
||||||
target_runner: [K4012-KOA, SECOND-RUNNER, THIRD-RUNNER]
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.target_runner }}
|
runs-on: ${{ matrix.target_runner }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install MSI and Create Log
|
- name: Install MSI and Create Log
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
# 1. Тихая установка MSI
|
# Используем другой файл (git_MAX2.txt), как вы указали
|
||||||
# /i - установка, /qn - без интерфейса, /norestart - без перезагрузки
|
|
||||||
Start-Process msiexec.exe -ArgumentList "/i C:\install\MAX.msi /qn /norestart" -Wait
|
Start-Process msiexec.exe -ArgumentList "/i C:\install\MAX.msi /qn /norestart" -Wait
|
||||||
|
|
||||||
# 2. Создание текстового файла
|
|
||||||
"Installed successfully on $(hostname) at $(Get-Date)" | Out-File -FilePath "C:\install\git_MAX2.txt" -Encoding utf8
|
"Installed successfully on $(hostname) at $(Get-Date)" | Out-File -FilePath "C:\install\git_MAX2.txt" -Encoding utf8
|
||||||
Reference in New Issue
Block a user