From 4c271241d71178f64ed153444c28f17ab21bea21 Mon Sep 17 00:00:00 2001 From: ebolo Date: Sun, 26 Jul 2026 20:02:13 +0700 Subject: [PATCH] ci: publish only the web application container Disable container support for tests and bump the application version to 1.2.1. --- .github/workflows/ci.yaml | 8 +++++--- CaddyManager.Tests/CaddyManager.Tests.csproj | 10 ++++++++++ .../Configurations/Application/ApplicationInfo.cs | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b2f8fc7..8534512 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,8 +29,10 @@ jobs: dotnet-quality: 'ga' cache: true cache-dependency-path: '**/packages.lock.json' - - name: Restore dependencies - run: dotnet restore --locked-mode + - name: Restore dependencies + # Scoped to the web app so the test project is never restored or built here; it pulls in + # Contracts and Services through its project references. Tests run locally, not in this job. + run: dotnet restore CaddyManager/CaddyManager.csproj --locked-mode - name: Application metadata id: metadata run: | @@ -41,7 +43,7 @@ jobs: sed -i "s/public static readonly string CommitHash = \"\[DEVELOPMENT\]\";/public static readonly string CommitHash = \"${{ steps.metadata.outputs.COMMIT_HASH }}\";/" CaddyManager/Configurations/Application/ApplicationInfo.cs - name: Publish container run: | - dotnet publish \ + dotnet publish CaddyManager/CaddyManager.csproj \ --configuration Release --os linux-musl --arch x64 \ /t:PublishContainer -p ContainerRegistry=ghcr.io \ -p ContainerRepository=${{ github.repository }} -p:ContainerImageTags='"${{ steps.metadata.outputs.APP_VERSION }};latest"' \ No newline at end of file diff --git a/CaddyManager.Tests/CaddyManager.Tests.csproj b/CaddyManager.Tests/CaddyManager.Tests.csproj index d084293..b3cb002 100644 --- a/CaddyManager.Tests/CaddyManager.Tests.csproj +++ b/CaddyManager.Tests/CaddyManager.Tests.csproj @@ -6,6 +6,16 @@ enable false true + + false diff --git a/CaddyManager/Configurations/Application/ApplicationInfo.cs b/CaddyManager/Configurations/Application/ApplicationInfo.cs index 5c051ee..d9f31f7 100644 --- a/CaddyManager/Configurations/Application/ApplicationInfo.cs +++ b/CaddyManager/Configurations/Application/ApplicationInfo.cs @@ -8,7 +8,7 @@ public class ApplicationInfo /// /// The version of the application, to be defined and tagged /// - public static readonly string Version = "1.2.0"; + public static readonly string Version = "1.2.1"; /// /// The commit hash of the application