fix: update ci action to fix build
Some checks failed
Caddy Manager CI build / docker (push) Failing after 1m26s
Some checks failed
Caddy Manager CI build / docker (push) Failing after 1m26s
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user