From 92e3915d945f1f2ad0038cda0017dff66340702b Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Sat, 7 Feb 2026 15:24:32 -0700 Subject: [PATCH] playlists in gitea now --- .gitea/workflows/update-playlist.yml | 27 ++++++++++++++++++++ workflows/backup-zfs.yml | 26 ------------------- workflows/libation-sync.yml | 18 -------------- workflows/update-playlist.yml | 37 ---------------------------- 4 files changed, 27 insertions(+), 81 deletions(-) create mode 100644 .gitea/workflows/update-playlist.yml delete mode 100644 workflows/backup-zfs.yml delete mode 100644 workflows/libation-sync.yml delete mode 100644 workflows/update-playlist.yml diff --git a/.gitea/workflows/update-playlist.yml b/.gitea/workflows/update-playlist.yml new file mode 100644 index 0000000..fc71a3d --- /dev/null +++ b/.gitea/workflows/update-playlist.yml @@ -0,0 +1,27 @@ +name: Manage Jellyfin Playlists +on: + workflow_dispatch: + schedule: + - cron: "0 * * * *" +jobs: + update-repo: + uses: ./.gitea/workflows/update-repo.yml + runs-on: home-server + run-python: + - name: Run Python script + env: + JELLYFIN_USER: ${{ secrets.JELLYFIN_USER }} + JELLYFIN_PASSWORD: ${{ secrets.JELLYFIN_PASSWORD }} + working-directory: /home/gitea-runner/infrastructure + run: | + docker build -t jellyfin_management -f jellyfin/Dockerfile . + docker run --rm \ + -e JELLYFIN_USER=$JELLYFIN_USER \ + -e JELLYFIN_PASSWORD=$JELLYFIN_PASSWORD \ + jellyfin_management \ + -m jellyfin.update_all_songs_playlist + docker run --rm \ + -e JELLYFIN_USER=$JELLYFIN_USER \ + -e JELLYFIN_PASSWORD=$JELLYFIN_PASSWORD \ + jellyfin_management \ + -m jellyfin.update_unindexed diff --git a/workflows/backup-zfs.yml b/workflows/backup-zfs.yml deleted file mode 100644 index 0a62608..0000000 --- a/workflows/backup-zfs.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: ZFS Backup -on: - schedule: - - cron: 0 1 * * * - workflow_dispatch: -jobs: - update-infrastructure: - runs-on: [self-hosted, home-server] - steps: - - name: run syncoid - run: | - zpool status - echo "" - zfs list - echo "" - syncoid \ - --recursive \ - --no-privilege-elevation \ - data-ssd/data \ - backup/data - - syncoid \ - --recursive \ - --no-privilege-elevation \ - data-ssd/media \ - backup/media diff --git a/workflows/libation-sync.yml b/workflows/libation-sync.yml deleted file mode 100644 index daef933..0000000 --- a/workflows/libation-sync.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Libation -on: - schedule: - # Run 4 times a day: 6am, 12pm, 6pm, 12am UTC - - cron: '0 6,12,18,0 * * *' - workflow_dispatch: # Allow manual trigger - -jobs: - sync-audiobooks: - runs-on: [home-server] - steps: - - name: Run Libation sync - working-directory: /home/gitea-runner/infrastructure/infrastructure/home-server/libation - run: | - echo "Starting Libation audiobook sync at $(date)" - docker compose pull -q - docker compose run --rm libation - echo "Libation sync completed at $(date)" diff --git a/workflows/update-playlist.yml b/workflows/update-playlist.yml deleted file mode 100644 index ad88c51..0000000 --- a/workflows/update-playlist.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Manage Jellyfin Playlists -on: - workflow_dispatch: - schedule: - - cron: '0 * * * *' -jobs: - run-python: - runs-on: [self-hosted, home-server] - steps: - - name: checkout repo - working-directory: /home/gitea-runner/infrastructure - run: | - if [ -d "infrastructure" ]; then - cd infrastructure - echo "Infrastructure folder exists. Resetting to the most recent commit." - git reset --hard HEAD - git pull https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} $(git rev-parse --abbrev-ref HEAD) - else - git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git - fi - - name: Run Python script - env: - JELLYFIN_USER: ${{ secrets.JELLYFIN_USER }} - JELLYFIN_PASSWORD: ${{ secrets.JELLYFIN_PASSWORD }} - working-directory: /home/gitea-runner/infrastructure/infrastructure - run: | - docker build -t jellyfin_management -f jellyfin/Dockerfile . - docker run --rm \ - -e JELLYFIN_USER=$JELLYFIN_USER \ - -e JELLYFIN_PASSWORD=$JELLYFIN_PASSWORD \ - jellyfin_management \ - -m jellyfin.update_all_songs_playlist - docker run --rm \ - -e JELLYFIN_USER=$JELLYFIN_USER \ - -e JELLYFIN_PASSWORD=$JELLYFIN_PASSWORD \ - jellyfin_management \ - -m jellyfin.update_unindexed