From 944d369d438698a3bdc5160549e6ae5533687254 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 9 Apr 2026 18:18:34 +0200 Subject: [PATCH] ci: automate S3 cache purge during deployment --- .gitea/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 40ea820..f8c6d3b 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -532,6 +532,29 @@ jobs: docker compose -p '${{ needs.prepare.outputs.project_name }}' --env-file $ENV_FILE up -d --remove-orphans " + - name: 🧹 Purge S3 Cache + shell: bash + run: | + echo "Installing rclone..." + curl -s -O https://downloads.rclone.org/rclone-current-linux-amd64.deb + sudo dpkg -i rclone-current-linux-amd64.deb > /dev/null 2>&1 + + echo "Configuring rclone..." + cat > rclone.conf <