mirror of
https://github.com/0xrsydn/idx-cli.git
synced 2026-08-07 01:33:52 +00:00
ops: draft self-hosted ownership snapshot publish flow
This commit is contained in:
parent
f24aa888b5
commit
c67748d950
5 changed files with 284 additions and 0 deletions
11
contrib/systemd/idx-ownership-snapshot-publish.service
Normal file
11
contrib/systemd/idx-ownership-snapshot-publish.service
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Publish idx ownership snapshot to GitHub Releases
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/srv/idx-cli
|
||||
Environment=HOME=/var/lib/idx-ownership-snapshot
|
||||
EnvironmentFile=/etc/idx-ownership-snapshot.env
|
||||
ExecStart=/bin/sh -lc 'nix develop --command scripts/publish-ownership-snapshot.sh --build --idx-bin ./target/debug/idx --output-dir /var/lib/idx-ownership-snapshot/current --repo 0xrsydn/idx-cli --release-tag ownership-snapshot-current'
|
||||
11
contrib/systemd/idx-ownership-snapshot-publish.timer
Normal file
11
contrib/systemd/idx-ownership-snapshot-publish.timer
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Run monthly idx ownership snapshot publish job
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-02 09:00:00
|
||||
Persistent=true
|
||||
RandomizedDelaySec=30m
|
||||
Unit=idx-ownership-snapshot-publish.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue