add dsb to ci
continuous-integration/drone/push Build is failing Details

merging_EF-API
David D'ALMEIDA 1 year ago
parent a0ffaba566
commit de4614ddd7

@ -30,6 +30,12 @@ FROM build AS publish
ARG BUILD_CONFIGURATION=Release ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "HeartTrackAPI.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false RUN dotnet publish "HeartTrackAPI.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
# Add the migrations
RUN dotnet ef migrations add MyMigrations --project StubbedContextLib/ --context TrainingStubbedContext
# Update the database
RUN dotnet ef database update --project StubbedContextLib/ --context TrainingStubbedContext --startup-project HeartTrackAPI/
FROM base AS final FROM base AS final
WORKDIR /app WORKDIR /app
COPY --from=publish /app/publish . COPY --from=publish /app/publish .

Loading…
Cancel
Save