diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index a22aa3e0..1131705a 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -19,14 +19,15 @@ jobs: password: ${{ secrets.TOKEN }} - name: Generate Static Image Assets - uses: add-actions/run-in-container@v1 - with: - image: archlinux:latest - run: | - pacman -Syu --noconfirm imagemagick webp ghostscript - chmod +x ./scripts/*.sh - bash ./scripts/first_page_image.sh - bash ./scripts/generate_webp.sh + run: | + docker run --rm \ + -v "${PWD}":"/work" \ + -w "/work" \ + archlinux:latest \ + sh -c "pacman -Syu --noconfirm imagemagick webp ghostscript && \ + chmod +x ./scripts/*.sh && \ + bash ./scripts/first_page_image.sh && \ + bash ./scripts/generate_webp.sh" - name: Set up Node.js uses: actions/setup-node@v4