Commit graph

19 commits

Author SHA1 Message Date
b9d01248d4
deploy tweak 2026-01-27 11:49:30 -06:00
a2f989205a
ci build tag home 2026-01-27 11:13:08 -06:00
4c3ecc708d
untag ci build 2026-01-27 11:11:06 -06:00
e7c62a1e4a
dont wait for deploy 2026-01-18 17:17:43 -06:00
07b0ddb67d
Set DEPLOY_TIMESTAMP from GitLab CI instead of pod metadata
- Update GitLab CI deploy job to set DEPLOY_TIMESTAMP when deploying
- Use 'kubectl set env' to update all pods with same timestamp
- Change deployment.yaml to use static placeholder value
- Update documentation to explain GitLab CI timestamp approach

This ensures all pods show the same deployment time, regardless of:
- Which pod handles the request (with replicas=2)
- When individual pods were created or restarted
- Pod restarts from crashes or rolling updates

The timestamp now represents when the deployment was initiated by GitLab CI,
not when individual pods were created.
2026-01-17 11:17:07 -06:00
d8247ec59c
Rename GitLab agent config to match home-cluster-agent 2026-01-11 15:37:49 -06:00
9be221209b
change agent path 2026-01-11 15:27:05 -06:00
18e20ffdb8
update runner 2026-01-11 15:12:57 -06:00
51019e30ce
Update GitLab agent context name for deployment 2026-01-11 13:38:44 -06:00
d382f6a46e
update gitlab ci 2026-01-11 13:33:54 -06:00
31ed13cf1a
Upgrade Docker to version 27 for API compatibility 2026-01-05 12:57:02 -06:00
62689ea939
Configure CI to use gitlabrunner 2026-01-05 12:26:19 -06:00
25b82848d6
Run migrations on app start instead of separate job
- Migrations now run in Application.start/2 before starting services
- Ecto's advisory locks prevent concurrent migrations in clustered setup
- Simplified deployment - no separate migration job needed
- Removed migrate-job.yaml manifest
2026-01-03 16:09:31 -06:00
547b7f1f14
Auto-cancel redundant builds on new commits
- Add workflow auto_cancel to cancel old pipelines
- Mark build job as interruptible
- Deploy jobs remain non-interruptible for safety
2026-01-03 15:57:03 -06:00
d80c10fa5d
Make deploy dependency on build explicit
Adds needs clause to ensure deploy waits for build to complete
2026-01-03 15:51:56 -06:00
7339ac7eec
Add automatic database migrations on deployment
- Create Kubernetes Job to run migrations before deployment
- Update GitLab CI to execute migration job and wait for completion
- Ensures migrations run once per deployment in clustered environment
- Migration job uses PostgreSQL advisory locks to prevent race conditions
2026-01-03 15:50:01 -06:00
570c6d03b3
Dockerfile improvements 2026-01-03 15:38:14 -06:00
c0a163ae25
Fix CI pipeline stages 2026-01-02 14:54:37 -06:00
ed0e98fb4f
Add GitLab CI/CD pipeline for automated Docker build and Kubernetes deployment 2026-01-02 14:53:11 -06:00