CI: fix step order - install git before using it
All checks were successful
Deploy / Deploy to Production (push) Successful in 34s
All checks were successful
Deploy / Deploy to Production (push) Successful in 34s
Move system dependencies installation before checkout step to ensure git is available when needed. Also add curl to dependencies for Composer installation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c7267d9f7d
commit
a06fad1c86
1 changed files with 6 additions and 5 deletions
|
|
@ -12,11 +12,6 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: php:8.3-cli
|
image: php:8.3-cli
|
||||||
steps:
|
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
|
- name: Install system dependencies and PHP extensions
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y --no-install-recommends \
|
apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
|
@ -25,6 +20,7 @@ jobs:
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
unzip \
|
unzip \
|
||||||
git \
|
git \
|
||||||
|
curl \
|
||||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||||
&& docker-php-ext-install -j$(nproc) gd \
|
&& docker-php-ext-install -j$(nproc) gd \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
@ -33,6 +29,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 --branch main https://forge.studio-variable.com/${{ github.repository }}.git .
|
||||||
|
ls -la
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
composer install --no-dev --optimize-autoloader
|
composer install --no-dev --optimize-autoloader
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue