diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 2d24eed..2f5ed52 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -9,6 +9,7 @@ jobs: docker: env: RUNNER_TOOL_CACHE: /toolcache + NUGET_PACKAGES: ${{ gitea.workspace }}/.nuget/packages runs-on: ubuntu-latest steps: - @@ -28,9 +29,11 @@ jobs: dotnet-version: '9' # SDK Version to use. dotnet-quality: 'ga' cache: true - - run: dotnet restore --locked-mode - - run: dotnet build --configuration Release --no-restore - - name: Build and push Docker image + - name: Restore dependencies + run: dotnet restore --locked-mode + - name: Build solution + run: dotnet build --configuration Release --no-restore + - name: Publish container run: | dotnet publish \ --configuration Release --os linux --arch x64 \ diff --git a/CaddyManager/CaddyManager.csproj b/CaddyManager/CaddyManager.csproj index c0b4ef4..d01d766 100644 --- a/CaddyManager/CaddyManager.csproj +++ b/CaddyManager/CaddyManager.csproj @@ -7,6 +7,8 @@ Linux 13 ebolo/caddy-manager + + true