From 6bad916a954ef2044e777edc25d6498274ec6f48 Mon Sep 17 00:00:00 2001 From: Kagir Date: Tue, 30 Dec 2025 17:25:59 +0100 Subject: [PATCH] First Commit --- .dockerignore | 25 +++++++++++++++++++++++++ .gitignore | 6 ++++++ Dockerfile | 21 +++++++++++++++++++++ Program.cs | 3 +++ TestGiteaActions.csproj | 11 +++++++++++ TestGiteaActions.sln | 16 ++++++++++++++++ 6 files changed, 82 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 Program.cs create mode 100644 TestGiteaActions.csproj create mode 100644 TestGiteaActions.sln diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..cd967fc --- /dev/null +++ b/.dockerignore @@ -0,0 +1,25 @@ +**/.dockerignore +**/.env +**/.git +**/.gitignore +**/.project +**/.settings +**/.toolstarget +**/.vs +**/.vscode +**/.idea +**/*.*proj.user +**/*.dbmdl +**/*.jfm +**/azds.yaml +**/bin +**/charts +**/docker-compose* +**/Dockerfile* +**/node_modules +**/npm-debug.log +**/obj +**/secrets.dev.yaml +**/values.dev.yaml +LICENSE +README.md \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f400df3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +bin/ +obj/ +/packages/ +riderModule.iml +/_ReSharper.Caches/ +.idea/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a5d7285 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM mcr.microsoft.com/dotnet/runtime:10.0 AS base +USER $APP_UID +WORKDIR /app + +FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build +ARG BUILD_CONFIGURATION=Release +WORKDIR /src +COPY ["TestGiteaActions.csproj", "./"] +RUN dotnet restore "TestGiteaActions.csproj" +COPY . . +WORKDIR "/src/" +RUN dotnet build "./TestGiteaActions.csproj" -c $BUILD_CONFIGURATION -o /app/build + +FROM build AS publish +ARG BUILD_CONFIGURATION=Release +RUN dotnet publish "./TestGiteaActions.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "TestGiteaActions.dll"] diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..e5dff12 --- /dev/null +++ b/Program.cs @@ -0,0 +1,3 @@ +// See https://aka.ms/new-console-template for more information + +Console.WriteLine("Hello, World!"); \ No newline at end of file diff --git a/TestGiteaActions.csproj b/TestGiteaActions.csproj new file mode 100644 index 0000000..9d55923 --- /dev/null +++ b/TestGiteaActions.csproj @@ -0,0 +1,11 @@ + + + + Exe + net10.0 + enable + enable + Linux + + + diff --git a/TestGiteaActions.sln b/TestGiteaActions.sln new file mode 100644 index 0000000..e5080f7 --- /dev/null +++ b/TestGiteaActions.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestGiteaActions", "TestGiteaActions.csproj", "{CF922623-7537-4502-B06A-692B5E3E381C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CF922623-7537-4502-B06A-692B5E3E381C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CF922623-7537-4502-B06A-692B5E3E381C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CF922623-7537-4502-B06A-692B5E3E381C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CF922623-7537-4502-B06A-692B5E3E381C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal