Previously, the deployment timestamp was set to DateTime.utc_now() when the application started, which meant it would always show as recent in k8s environments where pods are recreated on each deployment. This commit: - Updates Release.init() to check for DEPLOYED_AT environment variable - Falls back to current time if env var is not set (backwards compatible) - Adds proper ISO8601 timestamp parsing with error handling - Updates GitHub Actions deploy workflow to set DEPLOYED_AT during deployment - Creates k8s patch file for future manual deployments The deployment timestamp will now persist across pod restarts in k8s, showing the actual deployment time rather than pod startup time. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
13 lines
No EOL
225 B
YAML
13 lines
No EOL
225 B
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: aprs
|
|
namespace: aprs
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: aprs
|
|
env:
|
|
- name: DEPLOYED_AT
|
|
value: "TIMESTAMP_PLACEHOLDER" |