Обновить .gitea/workflows/install.yaml
This commit is contained in:
@@ -2,16 +2,6 @@ name: Install MSI on Specific Runner
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
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: Параллельный запуск на конкретном списке машин (Матрица)
|
# Вариант 2: Параллельный запуск на конкретном списке машин (Матрица)
|
||||||
deploy_all:
|
deploy_all:
|
||||||
strategy:
|
strategy:
|
||||||
@@ -25,4 +15,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Используем другой файл (git_MAX2.txt), как вы указали
|
# Используем другой файл (git_MAX2.txt), как вы указали
|
||||||
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
|
||||||
"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
|
||||||
|
# Вариант 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
|
||||||
|
|||||||
Reference in New Issue
Block a user