build(migrations): 🔨 mv tests to tests dir in build container

This commit is contained in:
Collin M. Barrett 2020-09-05 14:59:27 -05:00
parent 40f2378df9
commit e0c99730b3

View file

@ -31,13 +31,13 @@ FROM build AS test-migrations
ENTRYPOINT ["dotnet", "test", "--logger:trx"]
# restore Infrastructure.Migrations.Tests
WORKDIR /src/FilterLists.Directory.Infrastructure.Migrations.Tests
WORKDIR /tests/FilterLists.Directory.Infrastructure.Migrations.Tests
COPY directory/tests/FilterLists.Directory.Infrastructure.Migrations.Tests/FilterLists.Directory.Infrastructure.Migrations.Tests.csproj .
RUN dotnet restore
# build Infrastructure.Migrations.Tests
COPY directory/tests/FilterLists.Directory.Infrastructure.Migrations.Tests/. .
RUN dotnet build -c Release --no-restore -r linux-musl-x64
RUN dotnet build -c Release --no-restore -r linux-musl-x64
# package final
FROM base AS final