packages.wenpai.net/deploy/ansible/roles/wppackages/templates/wppackages-pipeline.service.j2
Ben Word 7c97446035 Fix OnFailure= placement in pipeline service unit
Move OnFailure= from [Service] to [Unit] section where systemd expects it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 11:18:51 -05:00

13 lines
502 B
Django/Jinja

[Unit]
Description=WP Packages Pipeline (discover + update + build + deploy)
OnFailure=wppackages-pipeline-notify@%n.service
[Service]
Type=oneshot
User=deploy
Group=www-data
WorkingDirectory={{ app_root }}/current
ExecStart={{ app_root }}/current/{{ go_binary_name }} pipeline --discover-source=svn --db {{ db_path }}
StandardOutput=append:{{ app_root }}/shared/storage/logs/pipeline.log
StandardError=append:{{ app_root }}/shared/storage/logs/pipeline.log
EnvironmentFile={{ app_root }}/shared/.env