From f3977428ef1ff2db784b16fede1c03693e90c069 Mon Sep 17 00:00:00 2001 From: trent Date: Fri, 2 Jan 2026 14:14:57 +0100 Subject: [PATCH] Update .woodpecker.yml --- .woodpecker.yml | 108 ++++++++++++++++++++++++------------------------ 1 file changed, 55 insertions(+), 53 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index d3f908a..1b2883b 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,60 +1,62 @@ - clone: +# Wyłącz domyślne clone wykonywane przez Woodpecker +clone: disable: true - steps: - clone-manual: +# Główna pipeline – wszystko co chcesz wykonać +pipeline: + clone-manual: image: woodpeckerci/plugin-git settings: - remote: http://gitea:3000/FA/FA_WEB.git # wewnętrzny URL, agent widzi gitea po nazwie serwisu! + remote: http://gitea:3000/FA/FA_WEB.git branch: master depth: 1 - restore: - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - dotnet restore --no-cache --force - - build: - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - dotnet build --no-restore -c Release - depends_on: - - restore - - test: - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - dotnet test --no-build -c Release --logger "trx" --results-directory ./test-results - depends_on: - - build - - pack-nuget: - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - | - for proj in $(find . -name "*DataModel.csproj"); do - echo "Packaging $proj" - dotnet pack "$proj" --no-build -c Release -o ./nuget-packages - done - when: - branch: ${CI_REPO_DEFAULT_BRANCH} - event: push - path: - include: - - "**/*DataModel.csproj" - - publish-api: - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - | - for proj in $(find . -name "*API.csproj"); do - proj_name=$(basename "$proj" .csproj) - echo "Publishing $proj" - dotnet publish "$$ proj" --no-build -c Release -o ./publish/ $${proj_name} - done - when: - branch: ${CI_REPO_DEFAULT_BRANCH} - event: push - path: - include: - - "**/*API.csproj" \ No newline at end of file + restore: + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet restore --no-cache --force + + build: + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet build --no-restore -c Release + depends_on: + - restore + + test: + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet test --no-build -c Release --logger "trx" --results-directory ./test-results + depends_on: + - build + + pack-nuget: + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - | + for proj in $(find . -name "*DataModel.csproj"); do + echo "Packaging $proj" + dotnet pack "$proj" --no-build -c Release -o ./nuget-packages + done + when: + branch: ${CI_REPO_DEFAULT_BRANCH} + event: push + path: + include: + - "**/*DataModel.csproj" + + publish-api: + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - | + for proj in $(find . -name "*API.csproj"); do + proj_name=$(basename "$proj" .csproj) + echo "Publishing $proj" + dotnet publish "$proj" --no-build -c Release -o ./publish/$proj_name + done + when: + branch: ${CI_REPO_DEFAULT_BRANCH} + event: push + path: + include: + - "**/*API.csproj" \ No newline at end of file