diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 19441c2..15ec3c6 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -10,13 +10,29 @@ jobs: name: Deploy to Production runs-on: docker container: - image: composer:latest + image: php:8.3-cli steps: - name: Checkout code run: | git clone --depth 1 --branch main https://forge.studio-variable.com/${{ github.repository }}.git . ls -la + - name: Install system dependencies and PHP extensions + run: | + apt-get update && apt-get install -y --no-install-recommends \ + libfreetype6-dev \ + libjpeg62-turbo-dev \ + libpng-dev \ + unzip \ + git \ + && docker-php-ext-configure gd --with-freetype --with-jpeg \ + && docker-php-ext-install -j$(nproc) gd \ + && rm -rf /var/lib/apt/lists/* + + - name: Install Composer + run: | + curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + - name: Install dependencies run: | composer install --no-dev --optimize-autoloader