Add drone #1

Closed
kjuulh wants to merge 110 commits from main into production
10 changed files with 1575 additions and 1359 deletions

9
.drone.yml Executable file
View File

@ -0,0 +1,9 @@
kind: pipeline
type: docker
name: "test"
steps:
- name: test
image: harbor.front.kjuulh.io/docker-proxy/library/bash:latest
commands:
- echo 'Run tests'

3
renovate.json Normal file
View File

@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}

View File

@ -3,7 +3,7 @@ WORKDIR /app
EXPOSE 80 EXPOSE 80
EXPOSE 443 EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src WORKDIR /src
COPY *.sln . COPY *.sln .

View File

@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3"/> <PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -14,8 +14,8 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Mediatr" Version="9.0.0" /> <PackageReference Include="Mediatr" Version="12.0.1" />
<PackageReference Include="Mediatr.Extensions.Microsoft.DependencyInjection" Version="9.0.0" /> <PackageReference Include="Mediatr.Extensions.Microsoft.DependencyInjection" Version="11.1.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -11,7 +11,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="6.0.0"/> <PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="7.0.5"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -10,9 +10,9 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="MongoDB.Driver" Version="2.13.2"/> <PackageReference Include="MongoDB.Driver" Version="2.19.1"/>
<PackageReference Include="MongoDB.Driver.Core" Version="2.13.2"/> <PackageReference Include="MongoDB.Driver.Core" Version="2.19.1"/>
<PackageReference Include="AspNetCore.HealthChecks.MongoDb" Version="5.0.1"/> <PackageReference Include="AspNetCore.HealthChecks.MongoDb" Version="6.0.2"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -1,5 +1,5 @@
# Install dependencies only when needed # Install dependencies only when needed
FROM node:14-alpine AS deps FROM node:20-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat RUN apk add --no-cache libc6-compat
WORKDIR /app WORKDIR /app
@ -7,7 +7,7 @@ COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile RUN yarn install --frozen-lockfile
# Rebuild the source code only when needed # Rebuild the source code only when needed
FROM node:14-alpine AS builder FROM node:20-alpine AS builder
WORKDIR /app WORKDIR /app
ARG NEXT_PUBLIC_SERVER_URL="http://localhost:5000" ARG NEXT_PUBLIC_SERVER_URL="http://localhost:5000"
@ -17,7 +17,7 @@ COPY --from=deps /app/node_modules ./node_modules
RUN yarn build RUN yarn build
# Production image, copy all the files and run next # Production image, copy all the files and run next
FROM node:14-alpine AS runner FROM node:20-alpine AS runner
WORKDIR /app WORKDIR /app
ENV NODE_ENV production ENV NODE_ENV production

View File

@ -8,28 +8,28 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@microsoft/signalr": "^6.0.0", "@microsoft/signalr": "7.0.5",
"@reduxjs/toolkit": "^1.6.2", "@reduxjs/toolkit": "1.9.5",
"@tippyjs/react": "^4.2.6", "@tippyjs/react": "4.2.6",
"axios": "^0.24.0", "axios": "1.4.0",
"next": "^12.2.5", "next": "13.4.3",
"next-pwa": "^5.6.0", "next-pwa": "5.6.0",
"react": "17.0.2", "react": "18.2.0",
"react-dom": "17.0.2", "react-dom": "18.2.0",
"react-redux": "^7.2.6", "react-redux": "8.0.5",
"react-textarea-autosize": "^8.3.3", "react-textarea-autosize": "8.4.1",
"tailwindcss": "^2.2.19" "tailwindcss": "3.3.2"
}, },
"devDependencies": { "devDependencies": {
"@types/react": "^17.0.34", "@types/react": "18.2.6",
"@types/react-redux": "^7.1.20", "@types/react-redux": "7.1.25",
"autoprefixer": "^10.4.0", "autoprefixer": "10.4.14",
"cssnano": "^5.0.10", "cssnano": "6.0.1",
"eslint": "7", "eslint": "8.41.0",
"eslint-config-next": "12.0.3", "eslint-config-next": "13.4.3",
"postcss": "^8.3.11", "postcss": "8.4.23",
"postcss-import": "^14.0.2", "postcss-import": "15.1.0",
"prettier": "^2.5.1", "prettier": "2.8.8",
"typescript": "^4.4.4" "typescript": "5.0.4"
} }
} }

File diff suppressed because it is too large Load Diff