{% extends "base.html" %} {% block title %}Версии Git — Админка{% endblock %} {% block content %}
{% include "admin/_nav.html" %} {% include "partials/alerts.html" %}
{{ status.current or '—' }} текущая версия
{% if status.repo_ready %}OK{% else %}—{% endif %} репозиторий
{% if status.enabled %}ON{% else %}OFF{% endif %} deploy из админки
{% if not status.repo_ready %}
Git-репозиторий недоступен по пути {{ status.repo_path }}. Смонтируйте проект в контейнер: ./:/repo в docker-compose.yml
{% endif %} {% if not status.enabled %}
Обновление через админку отключено. Установите ALLOW_GIT_DEPLOY=true в .env
{% endif %}

1. Обновить список версий

Путь: {{ status.repo_path }}{% if status.remote_url %} · {{ status.remote_url }}{% endif %}

2. Переключить версию

{% for tag in status.tags %}
{% if status.tags %}

Теги: {{ status.tags[:8]|join(', ') }}{% if status.tags|length > 8 %}…{% endif %}

{% elif status.tags_error %}

{{ status.tags_error }}

{% endif %}

3. Пересобрать Docker

Требуется доступ к /var/run/docker.sock в контейнере web

{% endblock %}