From d235e79b3d5104905f9b1ecf7f4c628b878be9c1 Mon Sep 17 00:00:00 2001 From: Rajendra Reddy Date: Thu, 16 Apr 2026 10:30:49 +0000 Subject: [PATCH] Update .gitea/workflows/compressimages.yml --- .gitea/workflows/compressimages.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitea/workflows/compressimages.yml b/.gitea/workflows/compressimages.yml index 6804a88..8223dce 100644 --- a/.gitea/workflows/compressimages.yml +++ b/.gitea/workflows/compressimages.yml @@ -42,6 +42,12 @@ jobs: fetch-depth: 0 ref: ${{ steps.branch.outputs.branch }} + # 🚀 FAST MIRROR (India) + - name: Use faster apt mirror + run: | + sudo sed -i 's|http://archive.ubuntu.com/ubuntu|http://in.archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list + sudo sed -i 's|http://security.ubuntu.com/ubuntu|http://in.archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list + - name: Install Image Tools run: | sudo apt-get update @@ -50,16 +56,22 @@ jobs: - name: Resize Oversized Images run: | find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) \ + -not -path "*/.git/*" \ + -not -path "*/node_modules/*" \ -exec mogrify -resize 1920x1920\> {} \; - name: Optimize JPEG run: | find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) \ + -not -path "*/.git/*" \ + -not -path "*/node_modules/*" \ -exec jpegoptim --strip-all --max=85 {} \; - name: Optimize PNG run: | find . -type f -iname "*.png" \ + -not -path "*/.git/*" \ + -not -path "*/node_modules/*" \ -exec pngquant --force --ext .png --quality=75-90 {} \; - name: Commit changes