109 Commits

Author SHA1 Message Date
f1d56e3e9e Update .woodpecker.yml
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline failed
2026-01-15 20:53:33 +00:00
a65e110e03 Update .woodpecker.yml 2026-01-15 07:51:56 +00:00
736c07bbb7 Update .woodpecker.yml 2026-01-15 07:42:59 +00:00
6c26cc891b Update .woodpecker.yml 2026-01-15 07:41:05 +00:00
c786ffe6ce Merge pull request 'Warehouses' (#22) from Warehouses into master
Reviewed-on: #22
2026-01-15 07:40:23 +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
2a239b67ca Merge pull request 'Update .woodpecker.yml' (#21) from Warehouses into master
Reviewed-on: #21
2026-01-15 07:32:23 +00:00
3a8a566350 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:31:55 +00:00
f8fecf81dc Merge pull request 'Update .woodpecker.yml' (#20) from Warehouses into master
Reviewed-on: #20
2026-01-14 21:35:26 +00:00
68e41a6620 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:35:03 +00:00
30c60a802c Merge pull request 'Update .woodpecker.yml' (#19) from Warehouses into master
Reviewed-on: #19
2026-01-14 21:31:32 +00:00
18c8916d00 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:31:12 +00:00
1ba5d128ba Merge pull request 'Update .woodpecker.yml' (#18) from Warehouses into master
Reviewed-on: #18
2026-01-14 21:30:22 +00:00
df9c187f3d Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:27:04 +00:00
65e54cf9ef Update .woodpecker.yml 2026-01-14 21:26:41 +00:00
cd46b87936 Merge pull request 'Update .woodpecker.yml' (#17) from Warehouses into master
Reviewed-on: #17
2026-01-14 21:16:28 +00:00
d4c5a978e4 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:16:04 +00:00
523039a237 Merge pull request 'Update .woodpecker.yml' (#16) from Warehouses into master
Reviewed-on: #16
2026-01-14 21:11:29 +00:00
dc88f4ef94 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:11:02 +00:00
0626f980c9 Update .woodpecker.yml 2026-01-14 21:10:23 +00:00
6a18dcf42a Merge pull request 'Update .woodpecker.yml' (#15) from Warehouses into master
Reviewed-on: #15
2026-01-14 21:04:40 +00:00
9a7d2e0ec5 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:04:22 +00:00
996095ba99 Merge pull request 'Update .woodpecker.yml' (#14) from Warehouses into master
Reviewed-on: #14
2026-01-14 21:00:34 +00:00
6014547ce7 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-14 21:00:01 +00:00
17cf4252c2 Merge pull request 'Warehouses' (#13) from Warehouses into master
Reviewed-on: #13
2026-01-14 20:56:44 +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
6175e87a50 Merge pull request 'Update .woodpecker.yml' (#12) from Warehouses into master
Reviewed-on: #12
2026-01-14 20:43:47 +00:00
eb95d41975 Update .woodpecker.yml 2026-01-14 20:39:00 +00:00
3b1a72cc28 Merge pull request '* Changed interval to 30' (#11) from Warehouses into master
Reviewed-on: #11
2026-01-11 12:45:27 +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
6dac17cbd1 Merge pull request '* Changed interval to 25' (#10) from Warehouses into master
Reviewed-on: #10
2026-01-11 12:43:02 +00: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
325d56e7f9 Merge pull request 'Warehouses' (#9) from Warehouses into master
Reviewed-on: #9
2026-01-11 12:36:01 +00: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
8e8ea7a929 Merge pull request '* Changed query interval to 30' (#8) from Warehouses into master
Reviewed-on: #8
2026-01-11 12:29:57 +00: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
a41e05045b Merge pull request 'Warehouses' (#7) from Warehouses into master
Reviewed-on: #7
2026-01-11 12:22:45 +00: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
f97e3d82b2 Merge pull request '* Changed QueryInterval back' (#6) from Warehouses into master
Reviewed-on: #6
2026-01-11 12:17:31 +00:00
f2686188e0 * Changed QueryInterval back
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-11 13:14:49 +01:00
05d9fdbbe3 Merge pull request '* Changed query interval' (#5) from Warehouses into master
Reviewed-on: #5
2026-01-11 11:50:35 +00:00
048a2097c3 * Changed query interval
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-11 12:49:48 +01:00
bf1d50db34 Merge pull request 'OrdersManagement: Fixed references' (#4) from Warehouses into master
Reviewed-on: #4
2026-01-11 11:43:56 +00:00
2fd327e3b8 Merge branch 'master' into Warehouses 2026-01-11 11:43:47 +00: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
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
dfc5c52003 * Test change 2026-01-09 12:17:04 +01:00
64390c5430 * Test change 2026-01-09 12:12:22 +01:00
794e30154b * Test change 2026-01-09 12:04:04 +01:00
2b3e36f9b9 * Test 2026-01-08 22:41:19 +01:00
c6468122fd * Change 2026-01-08 22:33:10 +01:00
b29ff1f1a1 * Change 2026-01-08 22:32:10 +01:00
00ba9700e9 * Another test 2026-01-08 22:29:05 +01:00
b4a9d52fcd * Another change 2026-01-08 22:26:57 +01:00
d33f68f0cd * Another test 2026-01-08 22:23:44 +01:00
a674a7300e * Bring back change 2026-01-08 22:15:37 +01:00
e4f62fff86 * Test change 2026-01-08 22:08:06 +01:00
3a26eaa335 * Bring back change 2026-01-08 21:57:46 +01:00
c0fdf241eb * Test change 2026-01-08 21:57:46 +01:00
7110678c7d Merge branch 'master' into Warehouses 2026-01-08 20:47:07 +00:00
724fba4177 Update .woodpecker.yml 2026-01-08 20:30:39 +00:00
bb44162bd6 Update .woodpecker.yml 2026-01-08 20:25:53 +00:00
f1d2ec2083 Update .woodpecker.yml 2026-01-08 20:23:50 +00:00
6fe6625892 Update .woodpecker.yml 2026-01-08 16:27:31 +00:00
61ba728f35 Update .woodpecker.yml 2026-01-08 16:25:23 +00:00
df6b0d56b7 Update .woodpecker.yml 2026-01-08 16:24:44 +00:00
22779715b9 Update .woodpecker.yml 2026-01-08 16:16:52 +00:00
e96d6fc2f9 Update .woodpecker.yml 2026-01-08 16:10:24 +00:00
55edcd2a2d Update .woodpecker.yml 2026-01-08 13:05:39 +00:00
606de33d41 Update .woodpecker.yml 2026-01-08 13:04:29 +00:00
41bd905bd2 Update .woodpecker.yml 2026-01-08 12:59:32 +00:00
bb4be4885d Update .woodpecker.yml 2026-01-08 12:53:08 +00:00
e8f0871230 Update .woodpecker.yml 2026-01-08 12:51:37 +00:00
09d131b89b Update .woodpecker.yml 2026-01-08 12:51:10 +00:00
9aa427aef8 Update .woodpecker.yml 2026-01-08 12:49:58 +00:00
397e13d865 Update .woodpecker.yml 2026-01-08 12:40:22 +00:00
ac565e7703 Update .woodpecker.yml 2026-01-08 12:37:04 +00:00
2167003ffd Merge pull request 'Warehouses' (#1) from Warehouses into master
Reviewed-on: http://srv51.mikr.us/git/FA/FA_WEB/pulls/1
2026-01-08 12:36:17 +00:00
2 changed files with 218 additions and 45 deletions

View File

@@ -1,25 +1,17 @@
skip_clone: true
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
settings:
remote: http://gitea:3000/FA/FA_WEB.git
branch: master
remote: http://gitea:3000/${CI_REPO}.git
branch: ${CI_COMMIT_BRANCH}
depth: 1
restore:
image: mcr.microsoft.com/dotnet/sdk:latest
commands:
@@ -29,7 +21,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:
@@ -39,7 +30,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:
@@ -54,15 +44,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 ==="
@@ -81,13 +67,48 @@ 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]
# NOWY KROK: Publish LinuxLocal apps
publish-linux-local:
image: mcr.microsoft.com/dotnet/sdk:latest
commands:
- |
set -euf
cd "${CI_WORKSPACE}"
mkdir -p linux-apps
echo "=== Publikacja aplikacji LinuxLocal ==="
find . -name "*.csproj" -type f | while read csproj; do
PROJECT_TYPE=$(dotnet msbuild "$csproj" -getProperty:ProjectType -noLogo 2>/dev/null || echo "Unknown")
if [ "$PROJECT_TYPE" = "LinuxLocal" ]; then
PROJECT_NAME=$(basename "$csproj" .csproj)
echo "→ Publishing $PROJECT_NAME"
dotnet publish "$csproj" \
--configuration Release \
--output "./linux-apps/$PROJECT_NAME" \
--runtime linux-x64 \
--self-contained false \
--no-restore
fi
done
echo ""
if [ -d "./linux-apps" ] && [ "$(ls -A ./linux-apps)" ]; then
echo "Opublikowane aplikacje:"
ls -la linux-apps/
else
echo "Brak aplikacji LinuxLocal do publikacji"
fi
depends_on: [restore]
publish-datamodels-to-baget:
image: mcr.microsoft.com/dotnet/sdk:latest
environment:
@@ -99,7 +120,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>
@@ -110,8 +130,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")"
@@ -120,35 +138,190 @@ 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
echo "=== Selekcja projektów do konteneryzacji ==="
find . -name "*.csproj" -type f | while read csproj; do
PROJECT_NAME=$(basename "$csproj" .csproj)
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" ] || [ "$PROJECT_TYPE" = "LinuxLocal" ]; then
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.)
# ←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←
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)"
echo "Pomijam $PROJECT_NAME (typ: $PROJECT_TYPE)"
fi
done
echo "Pipeline zakończony pomyślnie!"
echo ""
if [ -s projects-to-build.txt ]; then
echo "Znalezione projekty:"
cat projects-to-build.txt
echo "Łącznie: $(wc -l < projects-to-build.txt)"
else
echo "BRAK PROJEKTÓW DO BUDOWY!"
fi
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}"
REGISTRY_ORG="fa"
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/${REGISTRY_ORG}/" > /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 "=== Pushing SHA tag ==="
docker push "$(cat /tmp/tag.txt):${CI_COMMIT_SHA}"
echo "=== Pushing latest tag ==="
docker push "$(cat /tmp/tag.txt):latest"
echo "=== SUCCESS: $(cat /tmp/tag.txt) ==="
rm -f "Dockerfile.temp" "Dockerfile.final"
done
echo "=== WSZYSTKIE PROJEKTY ZAKONCZONE ==="
depends_on: [select-projects-for-container]
# NOWY KROK: Deploy LinuxLocal na serwer
deploy-linux-local:
image: alpine:latest
commands:
- |
set -euf
cd "${CI_WORKSPACE}"
if [ ! -d "./linux-apps" ] || [ ! "$(ls -A ./linux-apps)" ]; then
echo "Brak aplikacji LinuxLocal do wdrożenia"
exit 0
fi
echo "=== Wdrażanie aplikacji LinuxLocal do /opt/fa-apps/ ==="
mkdir -p /opt/fa-apps
for app in ./linux-apps/*; do
APP_NAME=$(basename "$app")
echo "→ Kopiuję $APP_NAME"
rm -rf "/opt/fa-apps/$APP_NAME"
cp -r "$app" "/opt/fa-apps/$APP_NAME"
# Nadaj uprawnienia wykonywania
chmod +x "/opt/fa-apps/$APP_NAME/$APP_NAME"
done
echo ""
echo "=== Wdrożone aplikacje ==="
ls -la /opt/fa-apps/
depends_on: [publish-linux-local, containerize-apps]
cleanup-docker:
image: docker:27-cli
commands:
- |
echo "=== Status przed czyszczeniem ==="
docker system df
echo ""
echo "=== Usuwanie dangling images ==="
docker image prune -f
echo ""
echo "=== Usuwanie starych wersji aplikacji ==="
docker images --format "{{.Repository}}:{{.Tag}}" | grep "git.modwad.pl/" | grep -v ":latest" | grep -v ":${CI_COMMIT_SHA}" | while read img; do
echo "Usuwam: $img"
docker rmi "$img" || true
done
echo ""
echo "=== Usuwanie kontenerów ==="
docker container prune -f
echo ""
echo "=== Usuwanie build cache ==="
docker builder prune -af
echo ""
echo "=== Status po czyszczeniu ==="
docker system df
depends_on: [deploy-linux-local]
when:
status: [success, failure]

View File

@@ -33,7 +33,7 @@ namespace SytelineSaAppEfDataModel
CreateMap<VatCodeAssociation, VatCodeAssociationDto>().ReverseMap();
CreateMap<ItemCustPriceAll, ItemCustPriceAllDto>().ReverseMap();
CreateMap<EdiLog, EdiLogDto>().ReverseMap();
CreateMap<WzRowMarelli, WzRowMarelliDto>().ReverseMap();
CreateMap<WzRowMarelli, WzRowMarelliDto>();
}
}
}