From 046a358ae03fd9cb1660e264d7e47cabd2af4db0 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 12 Jul 2024 13:02:37 +0200 Subject: [PATCH] refactor: Update Dockerfile to set CI environment variable to true --- app/Providers/AppServiceProvider.php | 3 ++- docker/prod/Dockerfile | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index af0f2638f..380f1e5f4 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -31,7 +31,8 @@ public function boot(): void } }); echo config('app.env'); - if (config('app.env') === 'production') { + echo env('CI'); + if (! env('CI')) { View::share('instanceSettings', InstanceSettings::get()); } diff --git a/docker/prod/Dockerfile b/docker/prod/Dockerfile index 4ee3fade2..f46124062 100644 --- a/docker/prod/Dockerfile +++ b/docker/prod/Dockerfile @@ -17,6 +17,7 @@ ARG TARGETPLATFORM # https://github.com/cloudflare/cloudflared/releases ARG CLOUDFLARED_VERSION=2024.4.1 ARG POSTGRES_VERSION=15 +ARG CI=true WORKDIR /var/www/html