Files
Dev/.gitea/workflows/install.yaml
kalugin66 5ac97fd072
Some checks failed
Manual and Auto Deployment / docker-latest (push) Failing after 3s
Manual and Auto Deployment / install_single (push) Failing after 1s
Manual and Auto Deployment / deploy_all (K4012-KOA) (push) Successful in 2s
Обновить .gitea/workflows/install.yaml
2026-04-16 14:57:40 +05:00

53 lines
1.9 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Manual and Auto Deployment
on:
push:
branches: [main]
# Добавляем блок ручного запуска
workflow_dispatch:
inputs:
run_mode:
description: 'Что запустить?'
required: true
default: 'all'
type: choice
options:
- 'all'
- 'docker_only'
- 'msi_only'
jobs:
# 1. Работа с Docker (только если выбрано 'all' или 'docker_only')
docker-latest:
if: github.event_name == 'push' || github.event.inputs.run_mode == 'all' || github.event.inputs.run_mode == 'docker_only'
runs-on: docker-latest
container:
image: node:18-alpine
steps:
- name: docker ps
shell: bash
run: docker ps
# 2. Установка MSI на конкретный раннер
deploy_all:
if: github.event_name == 'push' || github.event.inputs.run_mode == 'all' || github.event.inputs.run_mode == 'msi_only'
strategy:
matrix:
target_runner: [K4012-KOA]
runs-on: ${{ matrix.target_runner }}
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_MAX2.txt" -Encoding utf8
# 3. Установка на любой свободный self-hosted
install_single:
if: github.event_name == 'push' || github.event.inputs.run_mode == 'all' || github.event.inputs.run_mode == 'msi_only'
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