35 lines
1.0 KiB
Desktop File
35 lines
1.0 KiB
Desktop File
[Unit]
|
|
Description=Renovate Bot
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=renovate
|
|
Group=renovate
|
|
WorkingDirectory=/var/lib/renovate
|
|
# /snap/bin is included first in the PATH because I needed a more up to
|
|
# date node.js than the system had, so I installed the newer version via
|
|
# snap. This path points to that first.
|
|
Environment="PATH=/snap/bin:/usr/local/bin:/usr/bin:/bin"
|
|
# load the token from the environment
|
|
EnvironmentFile=/etc/renovate/token-env
|
|
Environment="RENOVATE_CONFIG_FILE=/etc/renovate/config.js"
|
|
Environment="GIT_AUTHOR_NAME=Renovate Bot"
|
|
Environment="GIT_AUTHOR_EMAIL=MarkEEaton@noreply.tildegit.org"
|
|
Environment="GIT_COMMITTER_NAME=Renovate Bot"
|
|
Environment="GIT_COMMITTER_EMAIL=MarkEEaton@noreply.tildegit.org"
|
|
# use the snap version of npx
|
|
ExecStart=/snap/bin/npx renovate
|
|
# Logging
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=renovate
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
[Unit]
|
|
Description=Renovate dependency updates
|
|
OnFailure=notify-gitea-failure@%n.service
|