diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index 2abb0289..63bfff16 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -23,15 +23,7 @@ jobs: run: dotnet restore TransactionProcessor.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} - name: Build Code - run: dotnet build TransactionProcessor.sln --configuration Release - - - name: Run Unit Tests - run: | - echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}" - dotnet test "TransactionProcessor.BusinessLogic.Tests\TransactionProcessor.BusinessLogic.Tests.csproj" - dotnet test "TransactionProcessor.ProjectionEngine.Tests\TransactionProcessor.ProjectionEngine.Tests.csproj" - dotnet test "TransactionProcessor.Aggregates.Tests\TransactionProcessor.Aggregates.Tests.csproj" - dotnet test "TransactionProcessor.Tests\TransactionProcessor.Tests.csproj" + run: dotnet build TransactionProcessor.sln --configuration Release - name: Publish Images to Docker Hub - Pre Release if: ${{ github.event.release.prerelease == true }} diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index 2af6544f..78015c3d 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -50,10 +50,9 @@ jobs: run: dotnet test "TransactionProcessor.IntegrationTests\TransactionProcessor.IntegrationTests.csproj" - uses: actions/upload-artifact@v4.4.0 - if: ${{ failure() }} with: name: tracelogs - path: /home/txnproc/trace/ + path: /home/runner/trace/ - uses: dacbd/create-issue-action@main if: ${{ failure() }} diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index 2dab3b39..717e6c99 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -62,10 +62,9 @@ jobs: dotnet test "TransactionProcessor.IntegrationTests/TransactionProcessor.IntegrationTests.csproj" --filter Category=PRTest --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=integration-test-results.trx" - uses: actions/upload-artifact@v4.4.0 - if: ${{ failure() }} with: name: tracelogs - path: /home/txnproc/trace/ + path: /home/runner/trace/ - name: Publish test results uses: dorny/test-reporter@v1 diff --git a/TransactionProcessor/Dockerfile b/TransactionProcessor/Dockerfile index 32be3300..368cf3cc 100644 --- a/TransactionProcessor/Dockerfile +++ b/TransactionProcessor/Dockerfile @@ -24,10 +24,5 @@ RUN dotnet publish "TransactionProcessor.csproj" -c Release -o /app/publish FROM base AS final WORKDIR /app -RUN groupadd --gid 10001 appuser \ - && useradd --uid 10001 --gid appuser --shell /usr/sbin/nologin appuser \ - && mkdir -p /home/txnproc/statements/outbound \ - && chown -R appuser:appuser /home/txnproc -COPY --from=publish --chown=appuser:appuser /app/publish . -USER appuser +COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "TransactionProcessor.dll"] \ No newline at end of file