79 Commits

Author SHA1 Message Date
8d626356c7 * Changed interval to 30
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-11 13:45:02 +01:00
9fd026ce71 * Changed interval to 25
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-11 13:42:34 +01:00
0a81374164 test webhook
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-11 13:34:58 +01:00
c586e2875a test webhook 2026-01-11 13:34:58 +01:00
638d7faf56 test webhook 2026-01-11 13:34:58 +01:00
792283f8e2 test webhook 2026-01-11 13:34:58 +01:00
8eda96003f test webhook 2026-01-11 13:34:58 +01:00
639a3547b2 test webhook 2026-01-11 13:34:58 +01:00
7a55775562 test webhook 2026-01-11 13:34:58 +01:00
a4b5bced79 test webhook 2026-01-11 13:34:58 +01:00
c6dadb2d61 Update .woodpecker.yml 2026-01-11 13:34:58 +01:00
9ef085b582 test webhook 2026-01-11 13:34:58 +01:00
815165b496 test webhook 2026-01-11 13:34:58 +01:00
9b4b075b0c test webhook 2026-01-11 13:34:58 +01:00
41c9c69eb1 test webhook 2026-01-11 13:34:58 +01:00
42f5ef38c8 * Changed query interval to 30
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-11 13:26:04 +01:00
ed93202fd4 * Changed query interval to 25
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-11 13:22:09 +01:00
7842696a34 test webhook 2026-01-11 13:22:09 +01:00
fe49432d0c test webhook 2026-01-11 13:22:09 +01:00
865211131e test webhook 2026-01-11 13:22:09 +01:00
ad2268d642 test webhook 2026-01-11 13:22:09 +01:00
f2686188e0 * Changed QueryInterval back
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-11 13:14:49 +01:00
048a2097c3 * Changed query interval
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-11 12:49:48 +01:00
2fd327e3b8 Merge branch 'master' into Warehouses 2026-01-11 11:43:47 +00:00
cb71d6abed * Fixed references 2026-01-11 12:42:41 +01:00
9cedf4402e * Changed nugets for API 2026-01-10 22:23:02 +01:00
94c5c8c436 Merge pull request 'Warehouses' (#3) from Warehouses into master
Reviewed-on: http://git.modwad.pl/FA/FA_WEB/pulls/3
2026-01-10 21:16:09 +00:00
8cc1981305 Update .woodpecker.yml 2026-01-10 21:15:43 +00:00
8e9a2a0975 * Added removing generating package on build
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-10 22:06:04 +01:00
51a96f6c6a Change .woodpecker.yml 2026-01-10 21:59:06 +01:00
7d37b7744c * Added missing info to OrderManagementDataModel.csproj 2026-01-10 21:53:38 +01:00
a26a52b078 force pipeline detection - dodanie cache buster w .woodpecker.yml 2026-01-10 21:53:38 +01:00
2f80dbc13c test webhook 2026-01-10 21:53:38 +01:00
929e41e312 test webhook 2026-01-10 21:53:38 +01:00
1e7c6a6694 test webhook 2026-01-10 21:53:38 +01:00
6297ae92eb test webhook 2026-01-10 21:53:38 +01:00
14b83bf9d2 Update .gitea/workflows/build-and-publish.yml 2026-01-10 21:53:38 +01:00
8ea4a4139e Merge pull request 'force pipeline detection - dodanie cache buster w .woodpecker.yml' (#2) from Warehouses into master
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
Reviewed-on: http://git.modwad.pl/FA/FA_WEB/pulls/2
2026-01-10 20:41:51 +00:00
d04e2ec56d force pipeline detection - dodanie cache buster w .woodpecker.yml
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline failed
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
2026-01-10 21:39:37 +01:00
f9ffdb7126 Merge pull request 'Warehouses' (#1) from Warehouses into master
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed
Reviewed-on: http://git.modwad.pl/FA/FA_WEB/pulls/1
2026-01-10 20:24:17 +00:00
c50560566c test webhook 2026-01-09 22:49:35 +01:00
cf0428dd53 test webhook 2026-01-09 22:44:47 +01:00
2da07b6da9 test webhook 2026-01-09 22:37:45 +01:00
55f2c1b862 test webhook 2026-01-09 22:31:05 +01:00
fffbd811ce Update .gitea/workflows/build-and-publish.yml 2026-01-09 12:01:48 +00:00
30b3eb6450 Add Gitea Actions workflow for build & publish 2026-01-09 12:53:26 +01:00
2c97c5054e Add Gitea Actions workflow for build & publish 2026-01-09 12:50:12 +01:00
dfc5c52003 * Test change 2026-01-09 12:17:04 +01:00
6fed42ee64 * Test change 2026-01-09 12:16:26 +01:00
64390c5430 * Test change 2026-01-09 12:12:22 +01:00
794e30154b * Test change 2026-01-09 12:04:04 +01:00
1321c88a31 * Test change 2026-01-09 12:03:19 +01:00
2b3e36f9b9 * Test 2026-01-08 22:41:19 +01:00
38ff2c1673 * Test change 2026-01-08 22:40:27 +01:00
070b538cb2 * Another change 2026-01-08 22:31:11 +01:00
d832f1b960 * Another change 2026-01-08 22:26:16 +01:00
db03b35292 * Another test 2026-01-08 22:23:14 +01:00
6f9b94a97c * Bring back change 2026-01-08 22:14:30 +01:00
c4a99e3c35 * Test change 2026-01-08 22:08:44 +01:00
1e796e2c13 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
26d00213d2 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
03b28eed6e Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
0baee2be8b Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
a49efec313 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
96bfccdd55 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
1f3a29b293 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
49f685f109 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
2c196c68d7 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
f0c4fef3cb Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
2b3bc03049 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
913a1ce49d Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
eb8dc3cd4f Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
4368129802 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
5d64abace3 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
1f9ae3998c Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
3c62579a49 Update .woodpecker.yml 2026-01-08 22:08:25 +01:00
9f0f0d703e Merge remote-tracking branch 'origin/Warehouses' into Warehouses 2026-01-08 21:56:52 +01:00
dae2a08390 * Test change 2026-01-08 21:56:42 +01:00
4f40f33666 * Bring back change 2026-01-08 21:39:26 +01:00
7 changed files with 233 additions and 45 deletions

View File

@@ -0,0 +1,192 @@
name: Build, Test & Publish DataModels + Apps
on:
push:
branches:
- master
create: # nowe tagi
tags:
- 'v*'
pull_request:
types: [opened, synchronize, reopened, closed]
workflow_dispatch: # ręczne uruchomienie
jobs:
restore-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # potrzebne do MinVer i git describe
repository: FA/FA_WEB # ← nazwa repozytorium (organizacja/repo)
ref: ${{ github.ref }} # lub ${{ gitea.ref }} w Gitea obie działają
# Najważniejsze nadpisz domyślny URL
url: http://srv51.mikr.us:20120/git/FA/FA_WEB.git
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x' # zmień na swoją wersję jeśli inna
- name: Restore all projects
run: |
echo "=== Restore wszystkich projektów ==="
find . -name "*.csproj" -type f -exec dotnet restore "{}" \;
- name: Run tests
run: |
echo "=== Uruchamianie testów ==="
dotnet test --no-restore --configuration Release --logger "trx"
pack-datamodels:
runs-on: ubuntu-latest
needs: restore-and-test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Install MinVer CLI
run: dotnet tool install --global minver-cli
- name: Pack DataModel projects
env:
MINVER_AUTO_INCREMENT: patch
MINVER_MINIMUM_MAJOR_MINOR: 2.0
MINVER_DEFAULT_PRE_RELEASE_IDENTIFIERS: alpha.0
run: |
echo "=== Obliczona wersja przez MinVer ==="
MINVER_VERSION=$(minver --verbosity detailed)
echo "Wersja: $MINVER_VERSION"
mkdir -p nupkg
echo "=== Pełniejsze fetch git (tags) ==="
git fetch --prune --tags --force
echo "=== Dostępne tagi ==="
git tag -l
echo "=== Aktualny opis commitu ==="
git describe --tags --always --dirty || echo "Brak tagów"
echo "=== Pakowanie projektów z PackageId ==="
find . -name "*.csproj" -type f | while read -r csproj; do
if grep -q '<PackageId>' "$csproj"; then
PROJECT_NAME=$(basename "$csproj" .csproj)
echo "→ Pakuję $PROJECT_NAME"
dotnet pack "$csproj" \
--no-restore \
--configuration Release \
-o "./nupkg" \
/p:PackageVersion="$MINVER_VERSION"
else
echo "→ Pomijam $(basename "$csproj" .csproj) brak PackageId"
fi
done
ls -la nupkg/ || echo "Brak wygenerowanych pakietów"
- name: Upload NuGet packages as artifact
uses: actions/upload-artifact@v4
with:
name: nuget-packages
path: nupkg/*.nupkg
retention-days: 3
publish-to-baget:
runs-on: ubuntu-latest
needs: pack-datamodels
steps:
- uses: actions/checkout@v4 # potrzebne tylko jeśli chcesz logować coś z repo
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Download built packages
uses: actions/download-artifact@v4
with:
name: nuget-packages
path: nupkg/
- name: Create custom NuGet.config (allow HTTP)
run: |
cat > NuGet.Config <<EOF
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="BaGet" value="http://baget:80/v3/index.json" protocolVersion="3" allowInsecureConnections="true" />
</packageSources>
</configuration>
EOF
- name: Publish packages to BaGet
env:
BAGET_API_KEY: ${{ secrets.BAGET_API_KEY }}
run: |
echo "=== Publikacja do BaGet ==="
find nupkg -name "*.nupkg" -type f | while read -r pkg; do
echo "→ Push $(basename "$pkg")"
dotnet nuget push "$pkg" \
--source "BaGet" \
--api-key "$BAGET_API_KEY" \
--skip-duplicate
done
build-and-publish-apps:
runs-on: ubuntu-latest
needs: publish-to-baget
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore (with latest DataModels)
run: |
echo "=== Restore z najnowszymi pakietami z BaGet ==="
dotnet restore
- name: Publish selected applications
run: |
echo "=== Publish aplikacji z DeployToCentral ==="
find . -name "*.csproj" -type f | while read -r csproj; do
PROJECT_NAME=$(basename "$csproj" .csproj)
PROJECT_DIR=$(dirname "$csproj")
if [[ "$PROJECT_NAME" == *"Api"* ]] || [[ "$PROJECT_NAME" == *"Blazor"* ]] || \
[[ "$PROJECT_DIR" == *"/Api/"* ]] || [[ "$PROJECT_DIR" == *"/Blazor/"* ]]; then
DEPLOY_TO_CENTRAL=$(dotnet msbuild "$csproj" -getProperty:DeployToCentral -nologo 2>/dev/null || echo "false")
if [ "$DEPLOY_TO_CENTRAL" != "true" ]; then
echo "Pomijam $PROJECT_NAME (DeployToCentral ≠ true)"
continue
fi
echo "→ Publishing $PROJECT_NAME"
dotnet publish "$csproj" \
--no-restore \
--configuration Release \
-o "./publish-$PROJECT_NAME"
# Tutaj możesz dodać deployment (np. rsync, scp, docker build+push itp.)
# Przykład (zakomentowany):
# rsync -avz --delete ./publish-$PROJECT_NAME/ user@server:/path/to/app/
else
echo "Pomijam $PROJECT_NAME (nie Api/Blazor)"
fi
done
echo "Pipeline zakończony"

View File

@@ -1,10 +1,18 @@
skip_clone: true
when:
event: [push, tag, manual]
branch: [master]
event: pull_request
action:
- merge
branch: master
steps:
debug-location:
image: alpine
commands:
- pwd # gdzie aktualnie jesteśmy
- ls -la # co jest w bieżącym katalogu
- find /woodpecker -maxdepth 4 -type d 2>/dev/null
clone-manual:
image: woodpeckerci/plugin-git
settings:
@@ -17,8 +25,8 @@ steps:
commands:
- |
set -euf
CODE_DIR="/woodpecker/src/localhost/git/FA/FA_WEB"
cd "$CODE_DIR"
cd "${CI_WORKSPACE}"
echo "Aktualna ścieżka: $(pwd)"
echo "=== Restore wszystkich projektów ==="
find . -name "*.csproj" -type f -exec dotnet restore "{}" \;
@@ -27,8 +35,7 @@ steps:
commands:
- |
set -euf
CODE_DIR="/woodpecker/src/localhost/git/FA/FA_WEB"
cd "$CODE_DIR"
cd "${CI_WORKSPACE}"
echo "=== Uruchamianie testów ==="
dotnet test --no-restore --configuration Release --logger "trx"
depends_on: [restore]
@@ -38,11 +45,9 @@ steps:
commands:
- |
set -euf
cd "${CI_WORKSPACE}"
echo "=== Instalacja MinVer CLI ==="
dotnet tool install --tool-path /tmp/minver minver-cli
CODE_DIR="/woodpecker/src/localhost/git/FA/FA_WEB"
cd "$CODE_DIR"
echo "=== Obliczona wersja przez MinVer ==="
MINVER_VERSION=$(/tmp/minver/minver \
--auto-increment patch \
@@ -53,7 +58,6 @@ steps:
echo "Wersja: $MINVER_VERSION"
mkdir -p nupkg
echo "=== Pełniejsze fetch git (unshallow + tags) ==="
git fetch --prune --unshallow || echo "Już full clone OK"
git fetch --tags
@@ -63,7 +67,6 @@ steps:
git tag -l
echo "=== Aktualny commit i opis ==="
git describe --tags --always --dirty
echo "=== Diagnostyka projektów ==="
find . -name "*.csproj" -type f | sort
mkdir -p nupkg
@@ -72,7 +75,6 @@ steps:
if grep -q '<PackageId>' "$csproj"; then
PROJECT_NAME=$(basename "$csproj" .csproj)
echo "→ Pakuję $PROJECT_NAME ($csproj)"
#dotnet pack "$csproj" --configuration Release -o "$CODE_DIR/nupkg" /p:PackageVersion=$MINVER_VERSION
dotnet pack "$csproj" \
--configuration Release \
-o "./nupkg" \
@@ -94,12 +96,9 @@ steps:
commands:
- |
set -euf
CODE_DIR="/woodpecker/src/localhost/git/FA/FA_WEB"
cd "$CODE_DIR"
cd "${CI_WORKSPACE}"
echo "=== Test połączenia z BaGetter ==="
curl -f http://baget:80/v3/index.json || echo "Nie można połączyć się z BaGetter!"
# Tworzymy minimalny NuGet.Config tylko po to, żeby odblokować HTTP dla nazwanego źródła
cat <<EOF > NuGet.Config
<?xml version="1.0" encoding="utf-8"?>
@@ -111,10 +110,8 @@ steps:
</packageSources>
</configuration>
EOF
echo "=== Użyty NuGet.Config (tylko do odblokowania HTTP) ==="
cat NuGet.Config
echo "=== Publikacja pakietów do BaGetter ==="
find ./nupkg -name "*.nupkg" -type f | while read pkg; do
echo "→ Push $(basename "$pkg")"
@@ -123,20 +120,15 @@ steps:
--api-key "$BAGETTER_API_KEY" \
--skip-duplicate
done
echo "Wszystkie pakiety DataModel opublikowane w BaGetter!"
depends_on: [pack-datamodels]
build-and-publish-apps:
image: mcr.microsoft.com/dotnet/sdk:latest
# environment:
# DEPLOY_SSH_KEY:
# from_secret: deploy_ssh_key
commands:
- |
set -euf
CODE_DIR="/woodpecker/src/localhost/git/FA/FA_WEB"
cd "$CODE_DIR"
cd "${CI_WORKSPACE}"
echo "=== Ponowny restore aplikacji (z najnowszymi pakietami z BaGetter) ==="
find . -name "*.csproj" -type f -exec dotnet restore "{}" \;
echo "=== Publish aplikacji ==="
@@ -150,7 +142,7 @@ steps:
continue
fi
echo "→ Publish $PROJECT_NAME ($csproj)"
dotnet publish "$csproj" --no-restore -c Release -o "$CODE_DIR/publish-$PROJECT_NAME"
dotnet publish "$csproj" --no-restore -c Release -o "./publish-$PROJECT_NAME"
# ←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←
# Tu wstaw swój kod deployu (rsync/ssh itp.)
# ←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←

View File

@@ -9,7 +9,7 @@
<ItemGroup>
<PackageReference Include="BCrypt.Net-Core" Version="1.6.0" />
<PackageReference Include="FaKrosnoEfDataModel" Version="2.0.0" />
<PackageReference Include="FaKrosnoEfDataModel" Version="2.0.1-alpha.0.65" />
<PackageReference Include="Hangfire" Version="1.8.17" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.11" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.11" />
@@ -20,13 +20,10 @@
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
<PackageReference Include="NSwag.AspNetCore" Version="14.2.0" />
<PackageReference Include="OrdersManagementDataModel" Version="2.0.0-alpha.0" />
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="29.2.4" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.3.0" />
<PackageReference Include="SytelineSaAppEfDataModel" Version="1.1.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OrdersManagementDataModel\OrdersManagementDataModel.csproj" />
<PackageReference Include="SytelineSaAppEfDataModel" Version="2.0.1-alpha.0.65" />
</ItemGroup>
</Project>

View File

@@ -10,6 +10,7 @@
<Nullable>enable</Nullable>
<MinVerAutoIncrement>patch</MinVerAutoIncrement>
<MinVerMinimumMajorMinor>1.0</MinVerMinimumMajorMinor>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>

View File

@@ -10,9 +10,11 @@
<ItemGroup>
<PackageReference Include="BCrypt.Net-Core" Version="1.6.0" />
<PackageReference Include="Blazored.LocalStorage" Version="4.5.0" />
<PackageReference Include="FaKrosnoEfDataModel" Version="2.0.1-alpha.0.65" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.11" />
<PackageReference Include="Microsoft.IdentityModel.Protocols" Version="8.6.1" />
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.6.1" />
<PackageReference Include="OrdersManagementDataModel" Version="2.0.0-alpha.0" />
<PackageReference Include="Syncfusion.Blazor.Buttons" Version="28.2.3" />
<PackageReference Include="Syncfusion.Blazor.Cards" Version="28.2.3" />
<PackageReference Include="Syncfusion.Blazor.Core" Version="28.2.3" />
@@ -21,11 +23,7 @@
<PackageReference Include="Syncfusion.Blazor.SplitButtons" Version="28.2.3" />
<PackageReference Include="Syncfusion.Blazor.Themes" Version="28.2.3" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.6.1" />
<PackageReference Include="SytelineSaAppEfDataModel" Version="2.0.1-alpha.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OrdersManagementDataModel\OrdersManagementDataModel.csproj" />
<PackageReference Include="SytelineSaAppEfDataModel" Version="2.0.1-alpha.0.65" />
</ItemGroup>
<ItemGroup>

View File

@@ -5,6 +5,13 @@
<ProjectType>DataModel</ProjectType>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>OrdersManagementDataModel</PackageId>
<Authors>Piotr Kus</Authors>
<Description>OrdersManagement Entity Framework Data Model</Description>
<MinVerAutoIncrement>patch</MinVerAutoIncrement>
<MinVerMinimumMajorMinor>1.0</MinVerMinimumMajorMinor>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>

View File

@@ -12,6 +12,7 @@
<Description>Syteline Entity Framework Data Model</Description>
<MinVerAutoIncrement>patch</MinVerAutoIncrement>
<MinVerMinimumMajorMinor>1.0</MinVerMinimumMajorMinor>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
<ItemGroup>