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: docker:
env: env:
RUNNER_TOOL_CACHE: /toolcache RUNNER_TOOL_CACHE: /toolcache
NUGET_PACKAGES: ${{ gitea.workspace }}/.nuget/packages
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- -
@@ -28,9 +29,11 @@ jobs:
dotnet-version: '9' # SDK Version to use. dotnet-version: '9' # SDK Version to use.
dotnet-quality: 'ga' dotnet-quality: 'ga'
cache: true cache: true
- run: dotnet restore --locked-mode - name: Restore dependencies
- run: dotnet build --configuration Release --no-restore run: dotnet restore --locked-mode
- name: Build and push Docker image - name: Build solution
run: dotnet build --configuration Release --no-restore
- name: Publish container
run: | run: |
dotnet publish \ dotnet publish \
--configuration Release --os linux --arch x64 \ --configuration Release --os linux --arch x64 \

View File

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