Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a06fc59e8f | ||
|
|
095ce15f0e | ||
|
|
a72041fcb0 |
@@ -25,3 +25,9 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
git.schweitz.internal/jpmschweitzer/core-api:latest
|
git.schweitz.internal/jpmschweitzer/core-api:latest
|
||||||
git.schweitz.internal/jpmschweitzer/core-api:${{ github.ref_name }}
|
git.schweitz.internal/jpmschweitzer/core-api:${{ github.ref_name }}
|
||||||
|
|
||||||
|
- name: Trigger Watchtower update
|
||||||
|
if: success()
|
||||||
|
run: |
|
||||||
|
curl -sf -H "Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}" \
|
||||||
|
http://watchtower:8080/v1/update
|
||||||
|
|||||||
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.1.2] - 2024-12-14
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Version field to /health endpoint response
|
||||||
|
|
||||||
|
## [1.1.1] - 2024-12-14
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Watchtower trigger step in CI workflow for automatic container updates
|
||||||
|
|
||||||
## [1.1.0] - 2024-12-14
|
## [1.1.0] - 2024-12-14
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "core-api"
|
name = "core-api"
|
||||||
version = "1.1.0"
|
version = "1.1.2"
|
||||||
description = "Core Code API - Infrastructure management and tools API"
|
description = "Core Code API - Infrastructure management and tools API"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|||||||
@@ -85,6 +85,7 @@ class HealthController(BaseController):
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
"status": "healthy",
|
"status": "healthy",
|
||||||
|
"version": settings.app_version,
|
||||||
"ollama_connected": ollama_healthy
|
"ollama_connected": ollama_healthy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ class TestHealthEndpoint:
|
|||||||
data = response.json()
|
data = response.json()
|
||||||
|
|
||||||
assert "status" in data
|
assert "status" in data
|
||||||
|
assert "version" in data
|
||||||
assert "ollama_connected" in data
|
assert "ollama_connected" in data
|
||||||
|
|
||||||
@patch("src.controllers.health_controller.get_ollama_client")
|
@patch("src.controllers.health_controller.get_ollama_client")
|
||||||
|
|||||||
Reference in New Issue
Block a user