138 Commits

Author SHA1 Message Date
775c7a2d5c * Removed comments
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-04-10 07:12:09 +02:00
7c61f6c80f * Removed comment
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-04-10 06:59:20 +02:00
b17411de19 * Removed comment
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-04-10 06:41:26 +02:00
6fac50225a Update .woodpecker.yml 2026-04-10 04:29:31 +00:00
f5ba09f58d * Fixed issue with wrong prices in columns
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-04-10 06:06:25 +02:00
4f48158bc7 * Fixed precision 2026-03-25 13:11:35 +01:00
448e9c554d Update .woodpecker.yml
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-15 12:55:30 +00:00
c5b6b10928 Update .woodpecker.yml
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-15 12:37:08 +00:00
9a6f2040cf Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 12:17:32 +00:00
f7926c78ad Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 12:11:29 +00:00
c15b325950 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 12:04:46 +00:00
1051e22ab3 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:55:05 +00:00
6b985d2cf7 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:48:23 +00:00
8f859e0cc7 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:46:07 +00:00
d007e36081 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:42:51 +00:00
d5c8e3a683 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:37:06 +00:00
9efa5a132f Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:21:05 +00:00
0200cd4b61 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:17:06 +00:00
ed508765eb Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:14:18 +00:00
b0f78e395f Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:09:37 +00:00
260897dd87 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:07:15 +00:00
065744d15a Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:04:27 +00:00
78806115ba Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:57:33 +00:00
cfe7924d25 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:54:43 +00:00
f3060013d3 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:52:31 +00:00
3d59cb1b68 Update .woodpecker.yml 2026-01-15 10:51:23 +00:00
8b3d04c6aa Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:48:53 +00:00
ea6c490edc Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:46:10 +00:00
353737bae0 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:43:37 +00:00
89de720f93 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:40:10 +00:00
492c70f384 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:37:16 +00:00
7d8de5c78f Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:32:39 +00:00
e9d6dbaa5c Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:25:34 +00:00
c501a84d53 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:18:49 +00:00
08800a4c10 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:08:01 +00:00
dfc405f4b0 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:05:44 +00:00
29ef6383b1 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:02:58 +00:00
86ff97b311 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:00:20 +00:00
cf878470a5 Update .woodpecker.yml 2026-01-15 09:57:25 +00:00
a0451c42de Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 09:53:19 +00:00
76b069a51e Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:44:14 +00:00
606bd31e21 Update .woodpecker.yml 2026-01-15 08:36:34 +00:00
e391d06085 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:27:16 +00:00
216a966f39 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:20:55 +00:00
fa8c0f3eb2 Update .woodpecker.yml
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-15 08:17:53 +00:00
c064479a2f Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:14:41 +00:00
531260eb9c Update .woodpecker.yml 2026-01-15 08:14:11 +00:00
81af6f02d9 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:08:45 +00:00
7c2001ad34 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:04:34 +00:00
9aaeaa0548 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:01:28 +00:00
7a8d3cf10c Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:58:05 +00:00
27dbb780ec Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:54:22 +00:00
4863d9120b Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:52:08 +00:00
b04546260a Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:48:41 +00:00
6d1f87f9d9 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:43:48 +00:00
b309669102 Update .woodpecker.yml 2026-01-15 07:39:59 +00:00
69aaa4b143 Update .woodpecker.yml 2026-01-15 07:38:14 +00:00
3a8a566350 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:31:55 +00:00
68e41a6620 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:35:03 +00:00
18c8916d00 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:31:12 +00:00
df9c187f3d Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:27:04 +00:00
d4c5a978e4 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:16:04 +00:00
dc88f4ef94 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:11:02 +00:00
9a7d2e0ec5 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:04:22 +00:00
6014547ce7 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:00:01 +00:00
23167283b0 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 20:55:47 +00:00
44efa3fa1b Update .woodpecker.yml 2026-01-14 20:55:26 +00:00
b8199a3428 Update .woodpecker.yml 2026-01-14 20:53:44 +00:00
232cb0e00d Update .woodpecker.yml 2026-01-14 20:53:03 +00:00
dfb6dbef93 Update .woodpecker.yml 2026-01-14 20:50:38 +00:00
f1ce3c57e9 Update .woodpecker.yml 2026-01-14 20:47:40 +00:00
eb95d41975 Update .woodpecker.yml 2026-01-14 20:39:00 +00:00
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
2c97c5054e Add Gitea Actions workflow for build & publish 2026-01-09 12:50:12 +01:00
6fed42ee64 * Test change 2026-01-09 12:16:26 +01:00
1321c88a31 * Test change 2026-01-09 12:03: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 176 additions and 86 deletions

View File

@@ -1,15 +1,15 @@
skip_clone: true
wwhen:
event: push
when:
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
- pwd
- ls -la
- find /woodpecker -maxdepth 4 -type d 2>/dev/null
clone-manual:
image: woodpeckerci/plugin-git
@@ -17,7 +17,6 @@ steps:
remote: http://gitea:3000/FA/FA_WEB.git
branch: master
depth: 1
restore:
image: mcr.microsoft.com/dotnet/sdk:latest
commands:
@@ -27,7 +26,6 @@ steps:
echo "Aktualna ścieżka: $(pwd)"
echo "=== Restore wszystkich projektów ==="
find . -name "*.csproj" -type f -exec dotnet restore "{}" \;
test:
image: mcr.microsoft.com/dotnet/sdk:latest
commands:
@@ -37,7 +35,6 @@ steps:
echo "=== Uruchamianie testów ==="
dotnet test --no-restore --configuration Release --logger "trx"
depends_on: [restore]
pack-datamodels:
image: mcr.microsoft.com/dotnet/sdk:latest
commands:
@@ -52,15 +49,11 @@ steps:
--minimum-major-minor 2.0 \
--default-pre-release-identifiers alpha.0 \
--verbosity info)
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
# Diagnostyka sprawdź czy tag jest widoczny
echo "=== Dostępne tagi ==="
git tag -l
echo "=== Aktualny commit i opis ==="
@@ -79,13 +72,12 @@ steps:
/p:PackageVersion=$MINVER_VERSION
else
PROJECT_NAME=$(basename "$csproj" .csproj)
echo "→ Pomijam $PROJECT_NAME brak <PackageId> (nie jest to biblioteka NuGet)"
echo "→ Pomijam $PROJECT_NAME brak <PackageId>"
fi
done
echo "=== Spakowane pakiety (.nupkg) ==="
echo "=== Spakowane pakiety ==="
ls -la nupkg/ || echo "Brak spakowanych pakietów!"
depends_on: [test]
publish-datamodels-to-baget:
image: mcr.microsoft.com/dotnet/sdk:latest
environment:
@@ -97,7 +89,6 @@ steps:
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"?>
<configuration>
@@ -108,8 +99,6 @@ 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")"
@@ -118,35 +107,134 @@ steps:
--api-key "$BAGETTER_API_KEY" \
--skip-duplicate
done
echo "Wszystkie pakiety DataModel opublikowane w BaGetter!"
depends_on: [pack-datamodels]
build-and-publish-apps:
select-projects-for-container:
image: mcr.microsoft.com/dotnet/sdk:latest
commands:
- |
set -euf
cd "${CI_WORKSPACE}"
echo "=== Ponowny restore aplikacji (z najnowszymi pakietami z BaGetter) ==="
find . -name "*.csproj" -type f -exec dotnet restore "{}" \;
echo "=== Publish aplikacji ==="
> projects-to-build.txt
find . -name "*.csproj" -type f | while read 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 "→ Publish $PROJECT_NAME ($csproj)"
dotnet publish "$csproj" --no-restore -c Release -o "./publish-$PROJECT_NAME"
# ←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←
# Tu wstaw swój kod deployu (rsync/ssh itp.)
# ←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←
PROJECT_TYPE=$(dotnet msbuild "$csproj" -getProperty:ProjectType -noLogo 2>/dev/null || echo "Unknown")
if [[ "$PROJECT_TYPE" == "Linux" || "$PROJECT_TYPE" == "Api" || "$PROJECT_TYPE" == "ServerProcess" || "$PROJECT_TYPE" == "Blazor" ]]; then
PROJECT_NAME=$(basename "$csproj" .csproj)
PROJECT_DIR=$(dirname "$csproj")
echo "→ Dodaję $PROJECT_NAME (typ: $PROJECT_TYPE)"
echo "$PROJECT_DIR|$PROJECT_NAME" >> projects-to-build.txt
else
echo "Pomijam $PROJECT_NAME (nie jest to Api ani Blazor)"
PROJECT_NAME=$(basename "$csproj" .csproj)
echo "→ Pomijam $PROJECT_NAME (typ: $PROJECT_TYPE)"
fi
done
echo "Pipeline zakończony pomyślnie!"
echo "=== Znaleziono projektow do budowy ==="
cat projects-to-build.txt || echo "Brak projektów!"
wc -l < projects-to-build.txt
depends_on: [publish-datamodels-to-baget]
containerize-apps:
image: docker:27-cli
environment:
GITEA_USER:
from_secret: gitea_registry_user
GITEA_TOKEN:
from_secret: gitea_registry_token
commands:
- |
set -euf
cd "${CI_WORKSPACE}"
echo "$GITEA_TOKEN" | docker login git.modwad.pl -u "$GITEA_USER" --password-stdin
if [ ! -s projects-to-build.txt ]; then
echo "Brak projektow"
exit 0
fi
rm -f NuGet.Config
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://127.0.0.1:8080/v3/index.json" />
</packageSources>
</configuration>
EOF
cat projects-to-build.txt | while IFS='|' read -r PDIR PNAME; do
PDIR=$(echo "$PDIR" | xargs)
PNAME=$(echo "$PNAME" | xargs)
test -z "$PNAME" && continue
test ! -d "$PDIR" && continue
echo -n "git.modwad.pl/fa/" > /tmp/tag.txt
echo "$PNAME" | tr 'A-Z' 'a-z' | tr -d '\n' >> /tmp/tag.txt
echo "$PNAME" > /tmp/pname.txt
echo "$PDIR" | sed 's|^\./||' > /tmp/pdir.txt
cat > "Dockerfile.temp" <<'ENDOFDOCKERFILE'
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore "%%PROJECTDIR%%/%%PROJECTNAME%%.csproj"
RUN dotnet publish "%%PROJECTDIR%%/%%PROJECTNAME%%.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore
FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:8080
ENTRYPOINT ["dotnet", "%%PROJECTNAME%%.dll"]
ENDOFDOCKERFILE
REAL_PNAME=$(cat /tmp/pname.txt)
REAL_PDIR=$(cat /tmp/pdir.txt)
sed "s|%%PROJECTNAME%%|$REAL_PNAME|g; s|%%PROJECTDIR%%|$REAL_PDIR|g" "Dockerfile.temp" > "Dockerfile.final"
echo "=== Budowanie obrazu ==="
DOCKER_BUILDKIT=0 docker build \
--network=host \
-t "$(cat /tmp/tag.txt):${CI_COMMIT_SHA}" \
-t "$(cat /tmp/tag.txt):latest" \
-f "Dockerfile.final" \
. || { echo "BUILD FAILED"; exit 1; }
echo "=== Obraz zbudowany, sprawdzam ==="
docker images | grep "$(cat /tmp/tag.txt | sed 's|git.modwad.pl/||')" || echo "Obraz nie znaleziony w docker images"
echo "=== Pushing SHA tag ==="
docker push "$(cat /tmp/tag.txt):${CI_COMMIT_SHA}" || { echo "PUSH SHA FAILED"; exit 1; }
echo "=== Pushing latest tag ==="
docker push "$(cat /tmp/tag.txt):latest" || { echo "PUSH LATEST FAILED"; exit 1; }
echo "=== SUCCESS: $(cat /tmp/tag.txt) ==="
rm -f "Dockerfile.temp" "Dockerfile.final"
done
echo "=== WSZYSTKIE PROJEKTY ZAKONCZONE ==="
depends_on: [select-projects-for-container]
cleanup-docker:
image: docker:27-cli
commands:
- |
echo "=== Czyszczenie starych obrazów ==="
docker image prune -af --filter "until=24h"
echo "=== Czyszczenie nieużywanych kontenerów ==="
docker container prune -f
echo "=== Czyszczenie build cache ==="
docker builder prune -af --filter "until=24h"
echo "=== Status po czyszczeniu ==="
docker system df
depends_on: [containerize-apps]
when:
status: [success, failure]

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

@@ -32,7 +32,7 @@ namespace SytelineSaAppEfDataModel
public DbSet<VatCodeAssociation> VatCodeAssociations { get; set; }
public DbSet<ItemCustPriceAll> ItemCustPriceAlls { get; set; }
public DbSet<EdiLog> EdiLogs { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
var configuration = new ConfigurationBuilder()
@@ -161,13 +161,13 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.BlanketQty).IsRequired(false).HasColumnName("blanket_qty");
entity.Property(e => e.EffectiveDate).HasColumnName("eff_date");
entity.Property(e => e.ExpirationDate).HasColumnName("exp_date");
entity.Property(e => e.ContPrice).IsRequired(false).HasColumnName("cont_price");
entity.Property(e => e.ContPrice).IsRequired(false).HasColumnName("cont_price").HasColumnType("decimal(20, 8)");
entity.Property(e => e.Status).IsRequired(false).HasColumnName("stat").HasMaxLength(1);
entity.Property(e => e.PromiseDate).HasColumnName("promise_date");
entity.Property(e => e.PriceCode).IsRequired(false).HasColumnName("pricecode").HasMaxLength(3);
entity.Property(e => e.Uom).IsRequired(false).HasColumnName("u_m").HasMaxLength(3);
entity.Property(e => e.BlanketQtyReleased).IsRequired(false).HasColumnName("blanket_qty_conv");
entity.Property(e => e.ContPriceReleased).IsRequired(false).HasColumnName("cont_price_conv");
entity.Property(e => e.ContPriceReleased).HasColumnType("decimal(20, 8)").IsRequired(false).HasColumnName("cont_price_conv");
entity.Property(e => e.QtySent).IsRequired(false).HasColumnName("qty_bco");
entity.Property(e => e.SentCode).IsRequired(false).HasColumnName("bco_code").HasMaxLength(1);
entity.Property(e => e.NonAppliedData).IsRequired(false).HasColumnName("non_appl_data").HasMaxLength(75);
@@ -216,8 +216,8 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.QtyShipped).IsRequired(false).HasColumnName("qty_shipped");
entity.Property(e => e.QtyPacked).IsRequired(false).HasColumnName("qty_packed");
entity.Property(e => e.Discount).IsRequired(false).HasColumnName("disc");
entity.Property(e => e.Cost).IsRequired(false).HasColumnName("cost");
entity.Property(e => e.Price).IsRequired(false).HasColumnName("price");
entity.Property(e => e.Cost).IsRequired(false).HasColumnName("cost").HasColumnType("decimal(20, 8)");
entity.Property(e => e.Price).IsRequired(false).HasColumnName("price").HasColumnType("decimal(20, 8)");
entity.Property(e => e.RefType).IsRequired(false).HasColumnName("ref_type").HasMaxLength(1);
entity.Property(e => e.RefNumber).IsRequired(false).HasColumnName("ref_num").HasMaxLength(10);
entity.Property(e => e.RefLineSuf).IsRequired(false).HasColumnName("ref_line_suf");
@@ -261,7 +261,7 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.PriceCode).IsRequired(false).HasColumnName("pricecode").HasMaxLength(3);
entity.Property(e => e.Uom).IsRequired(false).HasColumnName("u_m").HasMaxLength(3);
entity.Property(e => e.QtyOrderedReleased).IsRequired(false).HasColumnName("qty_ordered_conv");
entity.Property(e => e.PriceReleased).IsRequired(false).HasColumnName("price_conv");
entity.Property(e => e.PriceReleased).IsRequired(false).HasColumnName("price_conv").HasColumnType("decimal(20, 8)");
entity.Property(e => e.CustomerOrderCustomerNumber).IsRequired(false).HasColumnName("co_cust_num").HasMaxLength(7);
entity.Property(e => e.Packed).IsRequired(false).HasColumnName("packed");
entity.Property(e => e.Bol).IsRequired(false).HasColumnName("bol");
@@ -474,7 +474,7 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.BlanketQty).HasColumnName("blanket_qty");
entity.Property(e => e.EffDate).HasColumnName("eff_date").IsRequired(false);
entity.Property(e => e.ExpDate).HasColumnName("exp_date").IsRequired(false);
entity.Property(e => e.ContPrice).HasColumnName("cont_price").IsRequired(false);
entity.Property(e => e.ContPrice).HasColumnName("cont_price").HasColumnType("decimal(20, 8)").IsRequired(false);
entity.Property(e => e.Stat).HasColumnName("stat").HasMaxLength(2).IsRequired(false);
entity.Property(e => e.PromiseDate).HasColumnName("promise_date").IsRequired(false);
entity.Property(e => e.Pricecode).HasColumnName("pricecode").HasMaxLength(6).IsRequired(false);
@@ -639,7 +639,7 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.Uf_FKR_EDI_ITEM_PalletCode).HasColumnName("Uf_FKR_EDI_ITEM_PalletCode").HasMaxLength(50).IsRequired(false);
entity.Property(e => e.Uf_FKR_EDI_ITEM_DocumentType).IsRequired(false).HasColumnName("Uf_FKR_EDI_ITEM_DocType").HasMaxLength(50);
});
modelBuilder.Entity<UserName>(entity =>
{
entity.ToTable("UserNames");
@@ -684,7 +684,7 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.Uf_ZPL_EmpNum).HasColumnName("uf_ZPL_emp_num").HasMaxLength(7).IsRequired(false);
entity.Property(e => e.Uf_PLT_EmpNum).HasColumnName("uf_PLT_emp_num").HasMaxLength(14).IsRequired(false);
});
modelBuilder.Entity<EdiUser>(entity =>
{
entity.ToTable("edi_users");
@@ -708,7 +708,7 @@ namespace SytelineSaAppEfDataModel
entity.HasIndex(e => e.Login).IsUnique();
});
modelBuilder.Entity<MaterialTransaction>(entity =>
{
entity.ToTable("ZPL_InternalNum_Matltran");
@@ -887,7 +887,7 @@ namespace SytelineSaAppEfDataModel
.HasMaxLength(20)
.IsRequired(false);
});
modelBuilder.Entity<WzHeader>(entity =>
{
entity.ToTable("wz_header");
@@ -907,24 +907,23 @@ namespace SytelineSaAppEfDataModel
.HasColumnName("CreatedDate")
.HasColumnType("DateTime")
.IsRowVersion();
entity.Property(e => e.EmailAddresses)
.HasColumnName("EmailAddresses")
.HasMaxLength(1000)
.IsRequired(false);
entity.Property(e => e.WzNumbers)
.HasColumnName("WzNumbers")
.HasMaxLength(500)
.IsRequired(false);
// Relationship
entity.HasOne(e => e.Client)
.WithMany()
.HasForeignKey(e => e.FK_Client)
.HasConstraintName("wz_header_wz_clients_ID_fk");
});
modelBuilder.Entity<WzClient>(entity =>
{
entity.ToTable("wz_clients");
@@ -949,22 +948,22 @@ namespace SytelineSaAppEfDataModel
.HasColumnName("CreatedDate")
.HasColumnType("DateTime")
.IsRowVersion();
entity.Property(e => e.Name)
.HasColumnName("Name")
.HasMaxLength(255)
.IsRequired(false);
entity.Property(e => e.ShortName)
.HasColumnName("ShortName")
.HasMaxLength(30)
.IsRequired(false);
entity.Property(e => e.Logo)
.HasColumnType("VARBINARY(MAX)")
.IsRequired(false);
});
modelBuilder.Entity<WzRowMeyle>(entity =>
{
entity.ToTable("wz_row_meyle");
@@ -1010,12 +1009,12 @@ namespace SytelineSaAppEfDataModel
.HasColumnName("part_number")
.HasMaxLength(100)
.IsRequired(false);
entity.Property(e => e.TransactionNumber)
.HasColumnName("trans_num")
.HasColumnType("int")
.IsRequired(false);
entity.Property(e => e.FaIndex)
.HasColumnName("fa_index")
.HasMaxLength(100)
@@ -1026,13 +1025,12 @@ namespace SytelineSaAppEfDataModel
.HasMaxLength(100)
.IsRequired(false);
// Relationship
entity.HasOne(e => e.Header)
.WithMany()
.HasForeignKey(e => e.FK_Header)
.HasConstraintName("wz_rows_meyle_wz_header_ID_fk");
});
modelBuilder.Entity<ItemCust>(entity =>
{
entity.ToTable("itemcust");
@@ -1175,7 +1173,7 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_itemcust_RowPointer")
.IsUnique();
});
modelBuilder.Entity<Lot>(entity =>
{
entity.ToTable("lot");
@@ -1319,7 +1317,7 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_lot_RowPointer")
.IsUnique();
});
modelBuilder.Entity<EdiCustomerOrderImport>(entity =>
{
entity.ToTable("edi_co_import");
@@ -1553,7 +1551,7 @@ namespace SytelineSaAppEfDataModel
entity.HasIndex(e => e.RowPointer).HasDatabaseName("IX_customer_RowPointer").IsUnique();
});
modelBuilder.Entity<CustomerTp>(entity =>
{
entity.ToTable("cust_tp");
@@ -1742,7 +1740,7 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_cust_tp_RowPointer")
.IsUnique();
});
modelBuilder.Entity<Item>(entity =>
{
entity.ToTable("item");
@@ -2001,7 +1999,7 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_item_RowPointer")
.IsUnique();
});
modelBuilder.Entity<VatCodeAssociation>(entity =>
{
entity.ToTable("ZPL_VAT_CodesAssociations");
@@ -2311,7 +2309,7 @@ namespace SytelineSaAppEfDataModel
.HasMaxLength(200)
.IsRequired(false);
});
modelBuilder.Entity<ItemCustPriceAll>(entity =>
{
entity.ToTable("itemcustprice_all");
@@ -2344,6 +2342,7 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.ContPrice)
.HasColumnName("cont_price")
.HasColumnType("decimal(20, 8)")
.IsRequired(false);
entity.Property(e => e.BrkQty1)
@@ -2479,7 +2478,7 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_itemcustprice_all_RowPointer")
.IsUnique();
});
modelBuilder.Entity<EdiLog>(entity =>
{
entity.ToTable("edi_logs");
@@ -2516,7 +2515,7 @@ namespace SytelineSaAppEfDataModel
.HasColumnType("datetime")
.IsRequired();
});
modelBuilder.Entity<WzRowMarelli>(entity =>
{
entity.ToTable("wz_row_mareli");
@@ -2567,18 +2566,17 @@ namespace SytelineSaAppEfDataModel
.HasColumnName("wz_number")
.HasMaxLength(50)
.IsRequired(false);
entity.Property(e => e.FaIndex)
.HasColumnName("fa_index")
.HasMaxLength(30)
.IsRequired(false);
entity.Property(e => e.TransactionNumber)
.HasColumnName("trans_num")
.HasColumnType("int")
.IsRequired(false);
// Foreign Key
entity.HasOne(e => e.Header)
.WithMany()
.HasForeignKey(e => e.FKHeader)
@@ -2586,4 +2584,4 @@ namespace SytelineSaAppEfDataModel
});
}
}
}
}

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>