18 lines
632 B
Desktop File
18 lines
632 B
Desktop File
# CTAO portal demo — rebuild-on-new-commit worker (fired by the .timer).
|
|
# Install: copy to ~/.config/systemd/user/ → systemctl --user daemon-reload.
|
|
# Type=oneshot + timer means runs can never overlap: the timer will not
|
|
# activate a service that is still running.
|
|
|
|
[Unit]
|
|
Description=CTAO portal demo — rebuild if the code or content repo has new commits
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Environment=CODE_BRANCH=simple
|
|
Environment=CONTENT_BRANCH=simple
|
|
ExecStart=%h/ctao-portal-demo/bin/build.sh
|
|
# Polite neighbour on the shared VM:
|
|
Nice=10
|
|
# First-ever npm ci on 2 vCPU can be slow; normal rebuilds are seconds.
|
|
TimeoutStartSec=900
|