# One look at the deploys (scripts/quarry-deploy-watch.sh): one running
# over ten minutes, one that ended mid-way without a result, a FAILED
# line from a deploy run by hand. Started by quarry-deploy-watch.timer.
[Unit]
Description=quarry deploy watch
[Service]
Type=oneshot
EnvironmentFile=/srv/quarry/env
# doppler reads its config under $HOME, and a root unit without User=
# gets no $HOME from systemd: without this, doppler run fails before
# the script starts.
Environment=HOME=/root
ExecStart=/usr/bin/doppler run --project quarry --config prd -- /srv/quarry/quarry-deploy-watch.sh