Skip to content

Commit ba788c9

Browse files
committed
hotfix
1 parent de24291 commit ba788c9

5 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/production-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
username: ${{ secrets.REGISTRY_USERNAME }}
3030
password: ${{ secrets.REGISTRY_PASSWORD }}
3131
- run: |
32+
cp swagger.prod .env
3233
docker build -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi:${{ github.sha }} -f ./docker/Dockerfile .
3334
docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi:latest
3435

.github/workflows/qa-pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
username: ${{ secrets.REGISTRY_USERNAME }}
3535
password: ${{ secrets.REGISTRY_PASSWORD }}
3636
- run: |
37+
cp cp swagger.qa .env
3738
docker build -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi-qa:${{ github.sha }} -f ./docker/Dockerfile .
3839
docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi-qa:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnowapi-qa:latest
3940

config/l5-swagger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
* Constants which can be used in annotations
253253
*/
254254
'constants' => [
255-
'L5_SWAGGER_CONST_HOST' => env('APP_URL', 'https://api-preparemessages-stage.ifrc.org') . '/v2',
255+
'L5_SWAGGER_CONST_HOST' => env('SWAGGER_URL', null) . '/v2',
256256
],
257257
],
258258
];

swagger.prod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SWAGGER_URL=https://preparemessages.ifrc.org

swagger.qa

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SWAGGER_URL=https://preparemessages-stage.ifrc.org

0 commit comments

Comments
 (0)