Skip to content

Commit dd2393c

Browse files
Merge pull request #288 from IFRCGo/staging
Staging
2 parents d04dc2e + 4971421 commit dd2393c

File tree

9 files changed

+10
-2
lines changed

9 files changed

+10
-2
lines changed

.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 }}/whatnow:${{ github.sha }} -f ./docker/Dockerfile .
3334
docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow: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 swagger.qa .env
3738
docker build -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow-qa:${{ github.sha }} -f ./docker/Dockerfile .
3839
docker tag ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow-qa:${{ github.sha }} ${{ secrets.REGISTRY_LOGIN_SERVER }}/whatnow-qa:latest
3940

config/app.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
'url' => env('APP_URL', 'http://localhost'),
2020

2121

22+
'api_url' => env('API_URL', 'http://localhost'),
23+
2224

2325
'timezone' => 'UTC',
2426

config/l5-swagger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,6 @@
234234
|--------------------------------------------------------------------------
235235
*/
236236
'constants' => [
237-
'L5_SWAGGER_CONST_HOST' => config('app.url') . '/api',
237+
'L5_SWAGGER_CONST_HOST' => env('SWAGGER_URL', null),
238238
],
239239
];

helm-chart-backoffice/values-production.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
APP_DEBUG: false
1919
APP_LOG_LEVEL: info
2020
APP_URL: https://preparemessages.ifrc.org
21+
API_URL: https://api-preparemessages.ifrc.org
2122
GOOGLE_MAPS_KEY:
2223
DB_CONNECTION: mysql
2324
DB_PORT: 3306

helm-chart-backoffice/values-staging.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
APP_DEBUG: true
1919
APP_LOG_LEVEL: debug
2020
APP_URL: https://preparemessages-stage.ifrc.org
21+
API_URL: https://api-preparemessages-stage.ifrc.org
2122
GOOGLE_MAPS_KEY:
2223
DB_CONNECTION: mysql
2324
DB_PORT: 3306

resources/views/scripts.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$config = [
44
'appName' => config('app.name'),
55
'url' => config('app.url'),
6-
'api_url'=> config('rcnapi.url'),
6+
'api_url'=> config('app.api_url'),
77
'appEnv' => config('app.env'),
88
'locale' => $locale = app()->getLocale(),
99
'locales' => config('app.locales'),

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)