Compare commits
76 Commits
f9ffdb7126
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 3b1a72cc28 | |||
| 8d626356c7 | |||
| 6dac17cbd1 | |||
| 9fd026ce71 | |||
| 325d56e7f9 | |||
| 0a81374164 | |||
| c586e2875a | |||
| 638d7faf56 | |||
| 792283f8e2 | |||
| 8eda96003f | |||
| 639a3547b2 | |||
| 7a55775562 | |||
| a4b5bced79 | |||
| c6dadb2d61 | |||
| 9ef085b582 | |||
| 815165b496 | |||
| 9b4b075b0c | |||
| 41c9c69eb1 | |||
| 8e8ea7a929 | |||
| 42f5ef38c8 | |||
| a41e05045b | |||
| ed93202fd4 | |||
| 7842696a34 | |||
| fe49432d0c | |||
| 865211131e | |||
| ad2268d642 | |||
| f97e3d82b2 | |||
| f2686188e0 | |||
| 05d9fdbbe3 | |||
| 048a2097c3 | |||
| bf1d50db34 | |||
| 2fd327e3b8 | |||
| cb71d6abed | |||
| 9cedf4402e | |||
| 94c5c8c436 | |||
| 8cc1981305 | |||
| 8e9a2a0975 | |||
| 51a96f6c6a | |||
| 7d37b7744c | |||
| a26a52b078 | |||
| 2f80dbc13c | |||
| 929e41e312 | |||
| 1e7c6a6694 | |||
| 6297ae92eb | |||
| 14b83bf9d2 | |||
| 8ea4a4139e | |||
| d04e2ec56d | |||
| 2c97c5054e | |||
| 6fed42ee64 | |||
| 1321c88a31 | |||
| 38ff2c1673 | |||
| 070b538cb2 | |||
| d832f1b960 | |||
| db03b35292 | |||
| 6f9b94a97c | |||
| c4a99e3c35 | |||
| 1e796e2c13 | |||
| 26d00213d2 | |||
| 03b28eed6e | |||
| 0baee2be8b | |||
| a49efec313 | |||
| 96bfccdd55 | |||
| 1f3a29b293 | |||
| 49f685f109 | |||
| 2c196c68d7 | |||
| f0c4fef3cb | |||
| 2b3bc03049 | |||
| 913a1ce49d | |||
| eb8dc3cd4f | |||
| 4368129802 | |||
| 5d64abace3 | |||
| 1f9ae3998c | |||
| 3c62579a49 | |||
| 9f0f0d703e | |||
| dae2a08390 | |||
| 4f40f33666 |
@@ -1,10 +1,18 @@
|
|||||||
skip_clone: true
|
skip_clone: true
|
||||||
|
|
||||||
when:
|
when:
|
||||||
event: [push, tag, manual]
|
event: pull_request
|
||||||
branch: [master]
|
action:
|
||||||
|
- merge
|
||||||
|
branch: master
|
||||||
|
|
||||||
steps:
|
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:
|
clone-manual:
|
||||||
image: woodpeckerci/plugin-git
|
image: woodpeckerci/plugin-git
|
||||||
settings:
|
settings:
|
||||||
@@ -17,8 +25,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
set -euf
|
set -euf
|
||||||
CODE_DIR="/woodpecker/src/localhost/git/FA/FA_WEB"
|
cd "${CI_WORKSPACE}"
|
||||||
cd "$CODE_DIR"
|
echo "Aktualna ścieżka: $(pwd)"
|
||||||
echo "=== Restore wszystkich projektów ==="
|
echo "=== Restore wszystkich projektów ==="
|
||||||
find . -name "*.csproj" -type f -exec dotnet restore "{}" \;
|
find . -name "*.csproj" -type f -exec dotnet restore "{}" \;
|
||||||
|
|
||||||
@@ -27,8 +35,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
set -euf
|
set -euf
|
||||||
CODE_DIR="/woodpecker/src/localhost/git/FA/FA_WEB"
|
cd "${CI_WORKSPACE}"
|
||||||
cd "$CODE_DIR"
|
|
||||||
echo "=== Uruchamianie testów ==="
|
echo "=== Uruchamianie testów ==="
|
||||||
dotnet test --no-restore --configuration Release --logger "trx"
|
dotnet test --no-restore --configuration Release --logger "trx"
|
||||||
depends_on: [restore]
|
depends_on: [restore]
|
||||||
@@ -38,22 +45,19 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
set -euf
|
set -euf
|
||||||
|
cd "${CI_WORKSPACE}"
|
||||||
echo "=== Instalacja MinVer CLI ==="
|
echo "=== Instalacja MinVer CLI ==="
|
||||||
dotnet tool install --tool-path /tmp/minver 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 ==="
|
echo "=== Obliczona wersja przez MinVer ==="
|
||||||
MINVER_VERSION=$(/tmp/minver/minver \
|
MINVER_VERSION=$(/tmp/minver/minver \
|
||||||
--auto-increment patch \
|
--auto-increment patch \
|
||||||
--minimum-major-minor 2.0 \
|
--minimum-major-minor 2.0 \
|
||||||
--default-pre-release-identifiers alpha.0 \
|
--default-pre-release-identifiers alpha.0 \
|
||||||
--verbosity info)
|
--verbosity info)
|
||||||
|
|
||||||
echo "Wersja: $MINVER_VERSION"
|
echo "Wersja: $MINVER_VERSION"
|
||||||
|
|
||||||
mkdir -p nupkg
|
mkdir -p nupkg
|
||||||
|
|
||||||
echo "=== Pełniejsze fetch git (unshallow + tags) ==="
|
echo "=== Pełniejsze fetch git (unshallow + tags) ==="
|
||||||
git fetch --prune --unshallow || echo "Już full clone – OK"
|
git fetch --prune --unshallow || echo "Już full clone – OK"
|
||||||
git fetch --tags
|
git fetch --tags
|
||||||
@@ -63,7 +67,6 @@ steps:
|
|||||||
git tag -l
|
git tag -l
|
||||||
echo "=== Aktualny commit i opis ==="
|
echo "=== Aktualny commit i opis ==="
|
||||||
git describe --tags --always --dirty
|
git describe --tags --always --dirty
|
||||||
|
|
||||||
echo "=== Diagnostyka projektów ==="
|
echo "=== Diagnostyka projektów ==="
|
||||||
find . -name "*.csproj" -type f | sort
|
find . -name "*.csproj" -type f | sort
|
||||||
mkdir -p nupkg
|
mkdir -p nupkg
|
||||||
@@ -72,11 +75,10 @@ steps:
|
|||||||
if grep -q '<PackageId>' "$csproj"; then
|
if grep -q '<PackageId>' "$csproj"; then
|
||||||
PROJECT_NAME=$(basename "$csproj" .csproj)
|
PROJECT_NAME=$(basename "$csproj" .csproj)
|
||||||
echo "→ Pakuję $PROJECT_NAME ($csproj)"
|
echo "→ Pakuję $PROJECT_NAME ($csproj)"
|
||||||
#dotnet pack "$csproj" --configuration Release -o "$CODE_DIR/nupkg" /p:PackageVersion=$MINVER_VERSION
|
|
||||||
dotnet pack "$csproj" \
|
dotnet pack "$csproj" \
|
||||||
--configuration Release \
|
--configuration Release \
|
||||||
-o "./nupkg" \
|
-o "./nupkg" \
|
||||||
/p:PackageVersion=$MINVER_VERSION
|
/p:PackageVersion=$MINVER_VERSION
|
||||||
else
|
else
|
||||||
PROJECT_NAME=$(basename "$csproj" .csproj)
|
PROJECT_NAME=$(basename "$csproj" .csproj)
|
||||||
echo "→ Pomijam $PROJECT_NAME – brak <PackageId> (nie jest to biblioteka NuGet)"
|
echo "→ Pomijam $PROJECT_NAME – brak <PackageId> (nie jest to biblioteka NuGet)"
|
||||||
@@ -94,12 +96,9 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
set -euf
|
set -euf
|
||||||
CODE_DIR="/woodpecker/src/localhost/git/FA/FA_WEB"
|
cd "${CI_WORKSPACE}"
|
||||||
cd "$CODE_DIR"
|
|
||||||
|
|
||||||
echo "=== Test połączenia z BaGetter ==="
|
echo "=== Test połączenia z BaGetter ==="
|
||||||
curl -f http://baget:80/v3/index.json || echo "Nie można połączyć się 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
|
# Tworzymy minimalny NuGet.Config tylko po to, żeby odblokować HTTP dla nazwanego źródła
|
||||||
cat <<EOF > NuGet.Config
|
cat <<EOF > NuGet.Config
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
@@ -111,10 +110,8 @@ steps:
|
|||||||
</packageSources>
|
</packageSources>
|
||||||
</configuration>
|
</configuration>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "=== Użyty NuGet.Config (tylko do odblokowania HTTP) ==="
|
echo "=== Użyty NuGet.Config (tylko do odblokowania HTTP) ==="
|
||||||
cat NuGet.Config
|
cat NuGet.Config
|
||||||
|
|
||||||
echo "=== Publikacja pakietów do BaGetter ==="
|
echo "=== Publikacja pakietów do BaGetter ==="
|
||||||
find ./nupkg -name "*.nupkg" -type f | while read pkg; do
|
find ./nupkg -name "*.nupkg" -type f | while read pkg; do
|
||||||
echo "→ Push $(basename "$pkg")"
|
echo "→ Push $(basename "$pkg")"
|
||||||
@@ -123,20 +120,15 @@ steps:
|
|||||||
--api-key "$BAGETTER_API_KEY" \
|
--api-key "$BAGETTER_API_KEY" \
|
||||||
--skip-duplicate
|
--skip-duplicate
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Wszystkie pakiety DataModel opublikowane w BaGetter!"
|
echo "Wszystkie pakiety DataModel opublikowane w BaGetter!"
|
||||||
depends_on: [pack-datamodels]
|
depends_on: [pack-datamodels]
|
||||||
|
|
||||||
build-and-publish-apps:
|
build-and-publish-apps:
|
||||||
image: mcr.microsoft.com/dotnet/sdk:latest
|
image: mcr.microsoft.com/dotnet/sdk:latest
|
||||||
# environment:
|
|
||||||
# DEPLOY_SSH_KEY:
|
|
||||||
# from_secret: deploy_ssh_key
|
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
set -euf
|
set -euf
|
||||||
CODE_DIR="/woodpecker/src/localhost/git/FA/FA_WEB"
|
cd "${CI_WORKSPACE}"
|
||||||
cd "$CODE_DIR"
|
|
||||||
echo "=== Ponowny restore aplikacji (z najnowszymi pakietami z BaGetter) ==="
|
echo "=== Ponowny restore aplikacji (z najnowszymi pakietami z BaGetter) ==="
|
||||||
find . -name "*.csproj" -type f -exec dotnet restore "{}" \;
|
find . -name "*.csproj" -type f -exec dotnet restore "{}" \;
|
||||||
echo "=== Publish aplikacji ==="
|
echo "=== Publish aplikacji ==="
|
||||||
@@ -150,7 +142,7 @@ steps:
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo "→ Publish $PROJECT_NAME ($csproj)"
|
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.)
|
# Tu wstaw swój kod deployu (rsync/ssh itp.)
|
||||||
# ←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←
|
# ←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←
|
||||||
@@ -159,4 +151,4 @@ steps:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "Pipeline zakończony pomyślnie!"
|
echo "Pipeline zakończony pomyślnie!"
|
||||||
depends_on: [publish-datamodels-to-baget]
|
depends_on: [publish-datamodels-to-baget]
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BCrypt.Net-Core" Version="1.6.0" />
|
<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="Hangfire" Version="1.8.17" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.11" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.11" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.11" />
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.11" />
|
||||||
@@ -20,13 +20,10 @@
|
|||||||
</PackageReference>
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
|
||||||
<PackageReference Include="NSwag.AspNetCore" Version="14.2.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="Syncfusion.XlsIO.Net.Core" Version="29.2.4" />
|
||||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.3.0" />
|
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.3.0" />
|
||||||
<PackageReference Include="SytelineSaAppEfDataModel" Version="1.1.2" />
|
<PackageReference Include="SytelineSaAppEfDataModel" Version="2.0.1-alpha.0.65" />
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\OrdersManagementDataModel\OrdersManagementDataModel.csproj" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<MinVerAutoIncrement>patch</MinVerAutoIncrement>
|
<MinVerAutoIncrement>patch</MinVerAutoIncrement>
|
||||||
<MinVerMinimumMajorMinor>1.0</MinVerMinimumMajorMinor>
|
<MinVerMinimumMajorMinor>1.0</MinVerMinimumMajorMinor>
|
||||||
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -10,9 +10,11 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BCrypt.Net-Core" Version="1.6.0" />
|
<PackageReference Include="BCrypt.Net-Core" Version="1.6.0" />
|
||||||
<PackageReference Include="Blazored.LocalStorage" Version="4.5.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.AspNetCore.Authentication.JwtBearer" Version="8.0.11" />
|
||||||
<PackageReference Include="Microsoft.IdentityModel.Protocols" Version="8.6.1" />
|
<PackageReference Include="Microsoft.IdentityModel.Protocols" Version="8.6.1" />
|
||||||
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" 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.Buttons" Version="28.2.3" />
|
||||||
<PackageReference Include="Syncfusion.Blazor.Cards" Version="28.2.3" />
|
<PackageReference Include="Syncfusion.Blazor.Cards" Version="28.2.3" />
|
||||||
<PackageReference Include="Syncfusion.Blazor.Core" 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.SplitButtons" Version="28.2.3" />
|
||||||
<PackageReference Include="Syncfusion.Blazor.Themes" 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="System.IdentityModel.Tokens.Jwt" Version="8.6.1" />
|
||||||
<PackageReference Include="SytelineSaAppEfDataModel" Version="2.0.1-alpha.0.1" />
|
<PackageReference Include="SytelineSaAppEfDataModel" Version="2.0.1-alpha.0.65" />
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\OrdersManagementDataModel\OrdersManagementDataModel.csproj" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -5,6 +5,13 @@
|
|||||||
<ProjectType>DataModel</ProjectType>
|
<ProjectType>DataModel</ProjectType>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<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>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<Description>Syteline Entity Framework Data Model</Description>
|
<Description>Syteline Entity Framework Data Model</Description>
|
||||||
<MinVerAutoIncrement>patch</MinVerAutoIncrement>
|
<MinVerAutoIncrement>patch</MinVerAutoIncrement>
|
||||||
<MinVerMinimumMajorMinor>1.0</MinVerMinimumMajorMinor>
|
<MinVerMinimumMajorMinor>1.0</MinVerMinimumMajorMinor>
|
||||||
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user