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:
@@ -62,10 +62,6 @@ jobs:
|
||||
title: "Kubernetes Apply Failed"
|
||||
message: |
|
||||
Failed to apply kubernetes configs
|
||||
Workflow: ${{ gitea.workflow }}
|
||||
Repository: ${{ gitea.repository }}
|
||||
Job: update-infrastructure
|
||||
Status: ${{ needs.update-infrastructure.result }}
|
||||
action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}"
|
||||
priority: "high"
|
||||
tags: "rotating_light,kubernetes"
|
||||
@@ -36,10 +36,6 @@ jobs:
|
||||
title: "ZFS Backup Failed"
|
||||
message: |
|
||||
Failed to backup ZFS datasets
|
||||
Workflow: ${{ gitea.workflow }}
|
||||
Repository: ${{ gitea.repository }}
|
||||
Job: update-infrastructure
|
||||
Status: ${{ needs.update-infrastructure.result }}
|
||||
action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}"
|
||||
priority: "high"
|
||||
tags: "rotating_light,backup"
|
||||
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"
|
||||
@@ -24,10 +24,6 @@ jobs:
|
||||
title: "NixOS Cleanup Failed"
|
||||
message: |
|
||||
Failed to cleanup old NixOS generations
|
||||
Workflow: ${{ gitea.workflow }}
|
||||
Repository: ${{ gitea.repository }}
|
||||
Job: cleanup-generations
|
||||
Status: ${{ needs.cleanup-generations.result }}
|
||||
action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}"
|
||||
priority: "high"
|
||||
tags: "rotating_light,nixos"
|
||||
|
||||
@@ -30,10 +30,6 @@ jobs:
|
||||
title: "Libation Sync Failed"
|
||||
message: |
|
||||
Failed to sync audiobooks with Libation
|
||||
Workflow: ${{ gitea.workflow }}
|
||||
Repository: ${{ gitea.repository }}
|
||||
Job: sync-audiobooks
|
||||
Status: ${{ needs.sync-audiobooks.result }}
|
||||
action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}"
|
||||
priority: "high"
|
||||
tags: "rotating_light,audiobooks"
|
||||
|
||||
@@ -40,10 +40,6 @@ jobs:
|
||||
title: "Jellyfin Playlist Update Failed"
|
||||
message: |
|
||||
Failed to update Jellyfin playlists
|
||||
Workflow: ${{ gitea.workflow }}
|
||||
Repository: ${{ gitea.repository }}
|
||||
Job: run-python
|
||||
Status: ${{ needs.run-python.result }}
|
||||
action_url: "https://git.alexmickelson.guru/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}"
|
||||
priority: "high"
|
||||
tags: "rotating_light,jellyfin"
|
||||
|
||||
Reference in New Issue
Block a user