Compare commits
3 Commits
fix/backup
...
fix/deploy
| Author | SHA1 | Date | |
|---|---|---|---|
| e49bcf6ba6 | |||
| 4cf6cba77c | |||
| 9fc7de113a |
@@ -86,7 +86,7 @@ jobs:
|
||||
-v "$release:/src/release.tar:ro" \
|
||||
-v "$PROD_PATH":/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
|
||||
runtime_version="$(docker compose exec -T api python -c 'from app.version import BACKEND_VERSION; print(BACKEND_VERSION)')"
|
||||
test "$runtime_version" = "$EXPECTED_BACKEND_VERSION"
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 0.8.15
|
||||
|
||||
- Исправлен production deploy: cron installer запускается через `sh` и не требует executable-бита.
|
||||
|
||||
## 0.8.14
|
||||
|
||||
- Production CD больше не создаёт backup при каждом deploy; еженедельная задача
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
APP_VERSION = "0.8.14"
|
||||
FRONTEND_VERSION = "0.8.14"
|
||||
BACKEND_VERSION = "0.8.14"
|
||||
APP_VERSION = "0.8.15"
|
||||
FRONTEND_VERSION = "0.8.15"
|
||||
BACKEND_VERSION = "0.8.15"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "miem-workers"
|
||||
version = "0.8.14"
|
||||
version = "0.8.15"
|
||||
description = "MIEM employees parser, admin API, and web admin"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = [
|
||||
|
||||
@@ -18,7 +18,7 @@ def test_health_returns_versions():
|
||||
response = TestClient(app).get("/api/health")
|
||||
|
||||
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():
|
||||
|
||||
Reference in New Issue
Block a user