fix: update ci action to fix build
Some checks failed
Caddy Manager CI build / docker (push) Failing after 1m26s

This commit is contained in:
2025-01-26 09:28:51 +07:00
parent 346d8f41bb
commit 2c19e81d76
2 changed files with 8 additions and 3 deletions

View File

@@ -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 \

View File

@@ -7,6 +7,8 @@
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<LangVersion>13</LangVersion>
<ContainerRepository>ebolo/caddy-manager</ContainerRepository>
<!-- To avoid error on lock file not found -->
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
</PropertyGroup>
<ItemGroup>