using env file for db password, using asp net for cli runtime
This commit is contained in:
parent
090b12eebd
commit
1ca18a9174
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -27,10 +27,6 @@ jobs:
|
||||
build-Docker:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
dotnet-version: [ '6.0.x' ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -18,7 +18,7 @@ RUN dotnet test --no-restore --verbosity normal
|
||||
FROM base as publish
|
||||
RUN dotnet publish Selector.CLI/Selector.CLI.csproj -c Release -o /app --no-restore
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/runtime:6.0
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app ./
|
||||
ENV DOTNET_EnableDiagnostics=0
|
||||
|
@ -34,3 +34,4 @@ services:
|
||||
image: postgres
|
||||
ports:
|
||||
- "5432:5432"
|
||||
env_file: .env # set POSTGRES_PASSWORD
|
||||
|
@ -30,3 +30,4 @@ services:
|
||||
image: postgres
|
||||
ports:
|
||||
- "5432:5432"
|
||||
env_file: .env # set POSTGRES_PASSWORD
|
||||
|
Loading…
Reference in New Issue
Block a user