remove old services, now superceded
This commit is contained in:
1 parent
0da75217e4
commit
8f5b509eed
5 files changed
-121
No files matched your search
@@ -1,21 +0,0 @@
|
||||
# lives at ~/.config/systemd/user/profile-stats.service
|
||||
|
||||
# User-level systemd service to run update_profile.py
|
||||
# Configuration is via ~/.config/profile-stats.env, no in-file path edits needed.
|
||||
# Create that file with one line:
|
||||
# REPO_PATH=/absolute/path/to/this/repo
|
||||
# Then run:
|
||||
# systemctl --user daemon-reload
|
||||
[Unit]
|
||||
Description=Run update_profile.py (profile stats updater)
|
||||
OnFailure=notify-gitea-failure@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=%h/.config/profile-stats.env
|
||||
ExecStartPre=/usr/bin/nm-online -q
|
||||
ExecStartPre=/bin/bash -c 'for i in {1..30}; do getent hosts tildegit.org && exit 0; sleep 1; done; exit 1'
|
||||
ExecStart=/bin/bash -lc 'cd ${REPO_PATH} && uv run language_stats.py'
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
@@ -1,18 +0,0 @@
|
||||
# lives at ~/.config/systemd/user/profile-stats.timer
|
||||
|
||||
# User-level systemd timer that "catches up" missed runs if the machine was off.
|
||||
[Unit]
|
||||
Description=Schedule update_profile.py with catch-up if missed
|
||||
|
||||
[Timer]
|
||||
# Change this to your desired schedule; examples:
|
||||
# OnCalendar=daily
|
||||
# OnCalendar=Mon..Fri 09:00
|
||||
# See man systemd.time for syntax.
|
||||
OnCalendar=daily
|
||||
Timezone=America/New_York
|
||||
Persistent=true
|
||||
Unit=profile-stats.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -1,33 +0,0 @@
|
||||
// lives at /etc/renovate/config.js
|
||||
// token goes in the same directory
|
||||
|
||||
module.exports = {
|
||||
platform: 'gitea',
|
||||
endpoint: 'https://tildegit.org/api/v1/',
|
||||
token: process.env.RENOVATE_TOKEN,
|
||||
// repositories: ['MarkEEaton/teams-bot'],
|
||||
// Or use autodiscover to find all repos
|
||||
autodiscover: true,
|
||||
|
||||
enabledManagers: ['npm', 'nodenv', 'pip_requirements', 'pip_setup', 'poetry', 'pipenv', 'pep621'],
|
||||
// Disable GitHub-specific features
|
||||
fetchReleaseNotes: false,
|
||||
githubTokenWarn: false,
|
||||
|
||||
// Only use npm registry, PyPI, etc. - don't query GitHub
|
||||
hostRules: [
|
||||
{
|
||||
hostType: 'github',
|
||||
enabled: false,
|
||||
}
|
||||
],
|
||||
|
||||
// this is so that renovate doesn't think that python-version is a dependency
|
||||
packageRules: [
|
||||
{
|
||||
// Ignore Python version updates
|
||||
matchDatasources: ['python-version'],
|
||||
enabled: false,
|
||||
}
|
||||
],
|
||||
};
|
||||
@@ -1,34 +0,0 @@
|
||||
[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
|
||||
@@ -1,15 +0,0 @@
|
||||
# lives at /etc/systemd/system/renovate.timer
|
||||
|
||||
[Unit]
|
||||
Description=Run Renovate Bot periodically
|
||||
Requires=renovate.service
|
||||
|
||||
[Timer]
|
||||
# Run every 6 hours
|
||||
OnCalendar=00/6:00:00
|
||||
# Run 5 minutes after boot if we missed a scheduled run
|
||||
OnBootSec=5min
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in new issue
Block a user