Skip to content

Commit

Permalink
does it fix ci?
Browse files Browse the repository at this point in the history
  • Loading branch information
mplogas committed Mar 21, 2024
1 parent a14b905 commit 1c0fe10
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./KernelMemory.FileWatcher
#context: ./KernelMemory.FileWatcher
#dockerfile: ./KernelMemory.FileWatcher/Dockerfile
push: true
platforms: linux/amd64,linux/arm64
labels: ${{ steps.meta.outputs.labels }}
Expand Down
14 changes: 9 additions & 5 deletions KernelMemory.FileWatcher/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["./KernelMemory.FileWatcher.csproj", "./"]
RUN dotnet restore ./KernelMemory.FileWatcher.csproj
COPY . ./
RUN dotnet publish "./KernelMemory.FileWatcher.csproj" -c $BUILD_CONFIGURATION -o /app/publish
COPY ["KernelMemory.FileWatcher/KernelMemory.FileWatcher.csproj", "KernelMemory.FileWatcher/"]
RUN dotnet restore "./KernelMemory.FileWatcher/./KernelMemory.FileWatcher.csproj"
COPY . .
WORKDIR "/src/KernelMemory.FileWatcher"
RUN dotnet build "./KernelMemory.FileWatcher.csproj" -c $BUILD_CONFIGURATION -o /app/build

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./KernelMemory.FileWatcher.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY /app/publish .
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "KernelMemory.FileWatcher.dll"]
1 change: 1 addition & 0 deletions KernelMemory.FileWatcher.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution", "Solution", "{83
.gitattributes = .gitattributes
.gitignore = .gitignore
G:\docker\km-filewatcher\appsettings.json = G:\docker\km-filewatcher\appsettings.json
Dockerfile = Dockerfile
LICENSE.txt = LICENSE.txt
README.md = README.md
EndProjectSection
Expand Down
2 changes: 1 addition & 1 deletion KernelMemory.FileWatcher/KernelMemory.FileWatcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileRunArguments>-v G:\docker\km-filewatcher\appsettings.json:/config/appsettings.json:rw -v E:\Resilio\Obsidian\PersonalVault\talks:/data/notes-talks:ro</DockerfileRunArguments>
<DockerfileRunArguments>-v G:\docker\km-filewatcher\appsettings.json:/config/appsettings.json:rw -v G:\tmp\km-filewatcher\folder_02:/data/folder_02:ro</DockerfileRunArguments>
<ContainerRepository>km-filewatcher</ContainerRepository>
</PropertyGroup>
<ItemGroup>
Expand Down
15 changes: 8 additions & 7 deletions KernelMemory.FileWatcher/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@
},
"FileWatcher": {
"Directories": [
{
"Path": "G:\\tmp\\km-filewatcher\\folder_01",
"Filter": "*.md",
"Index": "folder-01",
"IncludeSubdirectories": true
},
//{
// "Path": "G:\\tmp\\km-filewatcher\\folder_01",
// "Filter": "*.md",
// "Index": "folder-01",
// "IncludeSubdirectories": true,
// "InitialScan": true
//},
{
"Path": "G:\\tmp\\km-filewatcher\\folder_02",
"Filter": "*.md",
"Index": "folder-02",
"IncludeSubdirectories": true,
"InitialScan": false
"InitialScan": true
}
]
},
Expand Down

0 comments on commit 1c0fe10

Please sign in to comment.