Files
portal/deploy/ctao-portal-build.service
T

18 lines
628 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=main
Environment=CONTENT_BRANCH=main
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