Aggiornamento main #14

Merged
Alessio merged 5 commits from staging into main 2026-03-22 16:25:41 +01:00
2 changed files with 9 additions and 3 deletions
Showing only changes of commit 4262fd6d71 - Show all commits
+5 -3
View File
@@ -30,6 +30,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Necessario per MinVer: deve percorrere tutta la storia Git per trovare i tag
- name: Setup .NET
uses: actions/setup-dotnet@v4
@@ -51,7 +53,7 @@ jobs:
# Fallback if MinVer fails (no tags)
if [ -z "$VERSION" ] || [ "$VERSION" = "0.0.0-alpha.0" ]; then
echo "Warning: No git tags found. MinVer returned default. Using fallback."
VERSION="2.1.0-alpha.0.$(git rev-list --count HEAD)"
VERSION="2.3.2-alpha.0.$(git rev-list --count HEAD)"
fi
echo "MinVer calculated version: $VERSION"
@@ -159,7 +161,7 @@ jobs:
steps:
- name: Checkout repository with Git
run: |
git clone --depth 1 --branch ${{ github.ref_name }} https://alessio:%REGISTRY_TOKEN%@gitea.home-nas-ds.org/${{ github.repository }}.git .
git clone --branch ${{ github.ref_name }} https://alessio:%REGISTRY_TOKEN%@gitea.home-nas-ds.org/${{ github.repository }}.git .
if not exist Dockerfile.windows (
echo ERROR: Dockerfile.windows not found
exit /b 1
@@ -191,7 +193,7 @@ jobs:
if ([string]::IsNullOrWhiteSpace($VERSION) -or $VERSION -eq "0.0.0-alpha.0") {
Write-Host "Warning: No git tags found. MinVer returned default. Using fallback."
$commitCount = git rev-list --count HEAD
$VERSION = "2.1.0-alpha.0.$commitCount"
$VERSION = "2.3.2-alpha.0.$commitCount"
}
Write-Host "MinVer calculated version: $VERSION"
+4
View File
@@ -31,6 +31,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Necessario per MinVer: deve percorrere tutta la storia Git per trovare i tag
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -95,6 +97,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Necessario per MinVer: deve percorrere tutta la storia Git per trovare i tag
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3