Skip to content

Commit a6fae2d

Browse files
committed
Fix 1-pr.yaml
Signed-off-by: Yasumasa Suenaga <[email protected]>
1 parent 8b97f2e commit a6fae2d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/1-pr.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ jobs:
122122
directory: ${{ env.DOTNET_SRC_DIR }}
123123

124124
- name: Generate Open API
125+
env:
126+
DataSources__EmissionsDataSource: Json
127+
DataSources__Configurations__Json__Type: JSON
125128
run: dotnet tool run swagger tofile --output ./wwwroot/api/v1/swagger.yaml --yaml ${{ env.DLL_FILE_PATH }} v1
126129
working-directory: ./src/CarbonAware.WebApi/src
127130

@@ -144,7 +147,7 @@ jobs:
144147

145148
- name: Docker Run Container
146149
run: |
147-
docker run -d --name runnable-container -p 8080:80 ca-api
150+
docker run -d --name runnable-container -e DataSources__EmissionsDataSource=Json -e DataSources__Configurations__Json__Type=JSON -p 8080:80 ca-api
148151
docker container ls
149152
150153
- name: Docker WGET Health Endpoint
@@ -244,4 +247,4 @@ jobs:
244247
command: config
245248
globs: |
246249
./custom.markdownlint.jsonc
247-
{"*[^.github]/**,*"}.md
250+
{"*[^.github]/**,*"}.md

0 commit comments

Comments
 (0)