|
|
@ -48,6 +48,7 @@ steps:
|
|
|
|
- name: swagger
|
|
|
|
- name: swagger
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
failure: ignore
|
|
|
|
failure: ignore
|
|
|
|
|
|
|
|
#context: .
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- name: docs
|
|
|
|
- name: docs
|
|
|
|
path: /docs
|
|
|
|
path: /docs
|
|
|
@ -65,6 +66,7 @@ steps:
|
|
|
|
- dotnet build HeartTrack.sln -c Release --no-restore
|
|
|
|
- dotnet build HeartTrack.sln -c Release --no-restore
|
|
|
|
- dotnet publish HeartTrack.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
|
|
|
|
- dotnet publish HeartTrack.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
|
|
|
|
- export PATH="$PATH:/root/.dotnet/tools"
|
|
|
|
- export PATH="$PATH:/root/.dotnet/tools"
|
|
|
|
|
|
|
|
- cd HeartTrackAPI
|
|
|
|
- nswag aspnetcore2openapi /output:/docs/swagger.json
|
|
|
|
- nswag aspnetcore2openapi /output:/docs/swagger.json
|
|
|
|
#- swagger tofile --output /docs/swagger.json HeartTrackAPI/bin/Release/net8.0/HeartTrackAPI.dll v1
|
|
|
|
#- swagger tofile --output /docs/swagger.json HeartTrackAPI/bin/Release/net8.0/HeartTrackAPI.dll v1
|
|
|
|
depends_on: [build,tests]
|
|
|
|
depends_on: [build,tests]
|
|
|
|