cleanup docker
All checks were successful
Apply Kuberentes Configs / update-repo (push) Successful in 1s
Apply Kuberentes Configs / update-infrastructure (push) Successful in 3s
Apply Kuberentes Configs / notify-on-failure (push) Has been skipped
Cleanup NixOS Generations / cleanup-generations (push) Successful in 2s
Cleanup NixOS Generations / notify-on-failure (push) Has been skipped
Cleanup Docker / cleanup-docker (push) Successful in 1s
Cleanup Docker / notify-on-failure (push) Has been skipped
ZFS Backup / notify-on-failure (push) Has been skipped
ZFS Backup / update-infrastructure (push) Successful in 1m43s
Libation / update-repo (push) Successful in 0s
Libation / sync-audiobooks (push) Successful in 5s
Libation / notify-on-failure (push) Has been skipped
Manage Jellyfin Playlists / update-repo (push) Successful in 1s
Manage Jellyfin Playlists / run-python (push) Successful in 52s
Manage Jellyfin Playlists / notify-on-failure (push) Has been skipped
All checks were successful
Apply Kuberentes Configs / update-repo (push) Successful in 1s
Apply Kuberentes Configs / update-infrastructure (push) Successful in 3s
Apply Kuberentes Configs / notify-on-failure (push) Has been skipped
Cleanup NixOS Generations / cleanup-generations (push) Successful in 2s
Cleanup NixOS Generations / notify-on-failure (push) Has been skipped
Cleanup Docker / cleanup-docker (push) Successful in 1s
Cleanup Docker / notify-on-failure (push) Has been skipped
ZFS Backup / notify-on-failure (push) Has been skipped
ZFS Backup / update-infrastructure (push) Successful in 1m43s
Libation / update-repo (push) Successful in 0s
Libation / sync-audiobooks (push) Successful in 5s
Libation / notify-on-failure (push) Has been skipped
Manage Jellyfin Playlists / update-repo (push) Successful in 1s
Manage Jellyfin Playlists / run-python (push) Successful in 52s
Manage Jellyfin Playlists / notify-on-failure (push) Has been skipped
This commit is contained in:
31
.gitea/workflows/cleanup-docker.yml
Normal file
31
.gitea/workflows/cleanup-docker.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Cleanup Docker
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 3 1,15 * *' # 1st and 15th of every month at 3am
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
cleanup-docker:
|
||||
runs-on: [home-server]
|
||||
steps:
|
||||
- name: Cleanup Docker resources
|
||||
run: |
|
||||
echo ""
|
||||
echo "Removing unused images..."
|
||||
docker image prune -a -f --filter "until=336h"
|
||||
|
||||
|
||||
notify-on-failure:
|
||||
runs-on: home-server
|
||||
needs: cleanup-docker
|
||||
if: failure()
|
||||
uses: ./.gitea/workflows/notify-ntfy.yml
|
||||
secrets:
|
||||
NTFY_CHANNEL: ${{ secrets.NTFY_CHANNEL }}
|
||||
with:
|
||||
title: "Docker Cleanup Failed"
|
||||
message: |
|
||||
Failed to cleanup Docker resources
|
||||
action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}"
|
||||
priority: "high"
|
||||
tags: "rotating_light,docker"
|
||||
Reference in New Issue
Block a user