From 12dfd181fc2d6050fd30d9e2224ba46f71c4fe51 Mon Sep 17 00:00:00 2001 From: Juan24 <93536474+juanbroder24@users.noreply.github.com> Date: Tue, 3 Jun 2025 16:00:03 -0300 Subject: [PATCH] fix --- .env.qa | 1 + .github/workflows/qa-pipeline.yml | 1 + config/l5-swagger.php | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .env.qa diff --git a/.env.qa b/.env.qa new file mode 100644 index 0000000..fa2519c --- /dev/null +++ b/.env.qa @@ -0,0 +1 @@ +SWAGGER_URL=https://preparemessages-stage.ifrc.org diff --git a/.github/workflows/qa-pipeline.yml b/.github/workflows/qa-pipeline.yml index e51ae70..15a2425 100644 --- a/.github/workflows/qa-pipeline.yml +++ b/.github/workflows/qa-pipeline.yml @@ -34,6 +34,7 @@ jobs: username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} - run: | + cp .env.qa .env docker build -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow-qa:${{ github.sha }} -f ./docker/Dockerfile . docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow-qa:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow-qa:latest diff --git a/config/l5-swagger.php b/config/l5-swagger.php index 81d0923..ed9e03e 100644 --- a/config/l5-swagger.php +++ b/config/l5-swagger.php @@ -234,6 +234,6 @@ |-------------------------------------------------------------------------- */ 'constants' => [ - 'L5_SWAGGER_CONST_HOST' => config('app.url'), + 'L5_SWAGGER_CONST_HOST' => env('SWAGGER_URL', null), ], ];