From 41e1a8b38645ec7852f282b17d77745e6953a434 Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Tue, 5 Aug 2025 13:15:30 -0400 Subject: [PATCH] fix: Install PHP / composer --- .gitea/workflows/deploy.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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"