Skip to content

Commit 10ab6c2

Browse files
committed
Fix CI: override .env.testing for GitHub, bump Dockerfile to PHP 8.4
1 parent 596060f commit 10ab6c2

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/laravel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ jobs:
7878
echo "AWS_DEFAULT_REGION=us-east-1" >> .env
7979
echo "AWS_BUCKET_AVATARS=test-bucket" >> .env
8080
echo "AWS_ENDPOINT=http://localhost:9000" >> .env
81+
# Override .env.testing DB host for CI (Docker service uses 127.0.0.1)
82+
sed -i 's/DB_HOST=mysql/DB_HOST=127.0.0.1/' .env.testing
83+
sed -i 's/DB_USERNAME=idp/DB_USERNAME=root/' .env.testing
84+
sed -i 's/DB_PASSWORD=idp/DB_PASSWORD=password/' .env.testing
8185
8286
- name: Generate Application Key
8387
run: php artisan key:generate

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dunglas/frankenphp:1.9-php8.3-bookworm as base
1+
FROM dunglas/frankenphp:latest-php8.4-bookworm as base
22
WORKDIR /app
33

44
ENV COMPOSER_MEMORY_LIMIT=-1

0 commit comments

Comments
 (0)