Warehouses #1

Merged
trent merged 159 commits from Warehouses into master 2026-01-10 20:24:17 +00:00
Showing only changes of commit f3977428ef - Show all commits

View File

@@ -1,60 +1,62 @@
clone: # Wyłącz domyślne clone wykonywane przez Woodpecker
clone:
disable: true disable: true
steps: # Główna pipeline wszystko co chcesz wykonać
clone-manual: pipeline:
clone-manual:
image: woodpeckerci/plugin-git image: woodpeckerci/plugin-git
settings: 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 branch: master
depth: 1 depth: 1
restore: restore:
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- dotnet restore --no-cache --force - dotnet restore --no-cache --force
build: build:
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- dotnet build --no-restore -c Release - dotnet build --no-restore -c Release
depends_on: depends_on:
- restore - restore
test: test:
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- dotnet test --no-build -c Release --logger "trx" --results-directory ./test-results - dotnet test --no-build -c Release --logger "trx" --results-directory ./test-results
depends_on: depends_on:
- build - build
pack-nuget: pack-nuget:
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- | - |
for proj in $(find . -name "*DataModel.csproj"); do for proj in $(find . -name "*DataModel.csproj"); do
echo "Packaging $proj" echo "Packaging $proj"
dotnet pack "$proj" --no-build -c Release -o ./nuget-packages dotnet pack "$proj" --no-build -c Release -o ./nuget-packages
done done
when: when:
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
event: push event: push
path: path:
include: include:
- "**/*DataModel.csproj" - "**/*DataModel.csproj"
publish-api: publish-api:
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- | - |
for proj in $(find . -name "*API.csproj"); do for proj in $(find . -name "*API.csproj"); do
proj_name=$(basename "$proj" .csproj) proj_name=$(basename "$proj" .csproj)
echo "Publishing $proj" echo "Publishing $proj"
dotnet publish "$$ proj" --no-build -c Release -o ./publish/ $${proj_name} dotnet publish "$proj" --no-build -c Release -o ./publish/$proj_name
done done
when: when:
branch: ${CI_REPO_DEFAULT_BRANCH} branch: ${CI_REPO_DEFAULT_BRANCH}
event: push event: push
path: path:
include: include:
- "**/*API.csproj" - "**/*API.csproj"