Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add systemd timer and service for updates #268

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions systemd/openqa-trigger-from-obs-update.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Update openqa-trigger-from-obs git repository
After=network-online.target

[Service]
Type=oneshot
ExecStart=/usr/bin/git -C /opt/openqa-trigger-from-obs pull --quiet --rebase origin master
User=geekotest

[Install]
WantedBy=default.target
9 changes: 9 additions & 0 deletions systemd/openqa-trigger-from-obs-update.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=Update git repository of openqa-trigger-from-obs

[Timer]
OnCalendar=*:0/3
Unit=openqa-trigger-from-obs-update.service

[Install]
WantedBy=default.target
Loading