diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 68231b7..55ee7f1 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -6,6 +6,9 @@ jobs: deploy: runs-on: ubuntu-latest + container: + image: php:8.2-cli + env: COMPOSER_CACHE_DIR: ~/.cache/composer @@ -13,8 +16,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Show current working directory - run: pwd + - name: Install Composer (if not already installed) + run: | + curl -sS https://getcomposer.org/installer | php + mv composer.phar /usr/local/bin/composer - name: Display existing composer cache (if runner reused) run: ls -la $COMPOSER_CACHE_DIR || echo "No cache found"