Skip to content
Open
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
4 changes: 4 additions & 0 deletions services/enable-ko-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
sudo systemctl enable kosync
sudo systemctl enable nginx
sudo systemctl enable nightswatcher
sudo systemctl enable --now purge-old-artifacts.timer
sudo systemctl start purge-old-artifacts.service
echo 'Next purge-old-artifacts run'
systemctl list-timers | grep purge-old-artifacts
8 changes: 8 additions & 0 deletions services/purge-old-artifacts.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Purge old build artifacts

[Service]
Type=oneshot
ExecStart=/ops/prod/build/purge_old_artifacts_v2.sh
StandardOutput=journal
StandardError=inherit
9 changes: 9 additions & 0 deletions services/purge-old-artifacts.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Unit]
Description=Hourly purge at minute 9

[Timer]
OnCalendar=*:09
Persistent=true

[Install]
WantedBy=timers.target