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:
|
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 \
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user