Add rc auto-release timer/service and rc branch worktree to host setup
The rc service builds from the rc branch worktree (/root/omarchy-pkgs-rc, created by bin/setup) but publishes into the primary checkout's channel tree via OMARCHY_REPO_ROOT. The timer is a retry backstop: rc builds are normally triggered immediately over SSH by the release orchestrator.
This commit is contained in:
1 parent
63f6156f25
commit
726c9d1f29
3 files changed
+62
-1
No files matched your search
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Auto-release omarchy-pkgs for rc mirror
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# The rc channel builds from the rc branch worktree, but publishes into the
|
||||
# primary checkout's channel tree via OMARCHY_REPO_ROOT.
|
||||
ExecStartPre=/usr/bin/git -C /root/omarchy-pkgs-rc pull --ff-only
|
||||
ExecStart=/bin/bash -c 'source /root/.omarchy/build-credentials && /root/omarchy-pkgs-rc/bin/auto-release rc'
|
||||
Environment=OMARCHY_STATE_DIR=/root/.state
|
||||
Environment=OMARCHY_REPO_ROOT=/root/omarchy-pkgs/pkgs.omarchy.org
|
||||
TimeoutStartSec=7200
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Retry pending rc releases every 6 hours
|
||||
|
||||
[Timer]
|
||||
# Backstop only: rc builds are normally triggered immediately over SSH by the
|
||||
# release orchestrator (touch .sync-needed-rc + systemctl start). This timer
|
||||
# retries builds whose state file survived a failure.
|
||||
OnCalendar=*-*-* 01,07,13,19:00:00 America/New_York
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in new issue
Block a user