Merge pull request 'fix: run backup installer through sh' (#52) from fix/deploy-cron-installer-permission into main
All checks were successful
CI / test (push) Successful in 9m11s
CI / deploy (push) Successful in 18s

Reviewed-on: #52
This commit was merged in pull request #52.
This commit is contained in:
2026-09-17 10:12:16 +00:00
5 changed files with 10 additions and 6 deletions

View File

@@ -86,7 +86,7 @@ jobs:
-v "$release:/src/release.tar:ro" \ -v "$release:/src/release.tar:ro" \
-v "$PROD_PATH":/dst \ -v "$PROD_PATH":/dst \
alpine:3.20 sh -c 'tar -xf /src/release.tar -C /dst' alpine:3.20 sh -c 'tar -xf /src/release.tar -C /dst'
/srv/miem_workers/infra/install-postgres-backup-cron.sh sh /srv/miem_workers/infra/install-postgres-backup-cron.sh
docker compose up -d --build docker compose up -d --build
runtime_version="$(docker compose exec -T api python -c 'from app.version import BACKEND_VERSION; print(BACKEND_VERSION)')" runtime_version="$(docker compose exec -T api python -c 'from app.version import BACKEND_VERSION; print(BACKEND_VERSION)')"
test "$runtime_version" = "$EXPECTED_BACKEND_VERSION" test "$runtime_version" = "$EXPECTED_BACKEND_VERSION"

View File

@@ -1,5 +1,9 @@
# Changelog # Changelog
## 0.8.15
- Исправлен production deploy: cron installer запускается через `sh` и не требует executable-бита.
## 0.8.14 ## 0.8.14
- Production CD больше не создаёт backup при каждом deploy; еженедельная задача - Production CD больше не создаёт backup при каждом deploy; еженедельная задача

View File

@@ -1,3 +1,3 @@
APP_VERSION = "0.8.14" APP_VERSION = "0.8.15"
FRONTEND_VERSION = "0.8.14" FRONTEND_VERSION = "0.8.15"
BACKEND_VERSION = "0.8.14" BACKEND_VERSION = "0.8.15"

View File

@@ -1,6 +1,6 @@
[project] [project]
name = "miem-workers" name = "miem-workers"
version = "0.8.14" version = "0.8.15"
description = "MIEM employees parser, admin API, and web admin" description = "MIEM employees parser, admin API, and web admin"
requires-python = ">=3.11" requires-python = ">=3.11"
dependencies = [ dependencies = [

View File

@@ -18,7 +18,7 @@ def test_health_returns_versions():
response = TestClient(app).get("/api/health") response = TestClient(app).get("/api/health")
assert response.status_code == 200 assert response.status_code == 200
assert response.json()["backend_version"] == "0.8.14" assert response.json()["backend_version"] == "0.8.15"
def test_api_employees_and_stats_require_admin_session(): def test_api_employees_and_stats_require_admin_session():