gitea version (first attempt)

This commit is contained in:
mullayanov
2025-04-17 11:33:38 +05:00
parent 6bf569ec26
commit 3ee605d03e
5 changed files with 29 additions and 151 deletions

View File

@@ -1,10 +1,14 @@
ARG SERVERCORE_VERSION="ltsc2022"
ARG RUNNER_VERSION="2.319.1"
ARG RUNNER_VERSION="0.2.11"
FROM mcr.microsoft.com/windows/servercore:${SERVERCORE_VERSION}
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
# disable telemetry
ENV POWERSHELL_TELEMETRY_OPTOUT="1"
# Set working directory
WORKDIR /actions-runner
@@ -31,9 +35,9 @@ RUN choco install -y visualstudio2022buildtools --package-parameters \" \
# Add MSBuild to the path
RUN [Environment]::SetEnvironmentVariable(\"Path\", $env:Path + \";C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\", \"Machine\")
ENV RUNNER_VERSION=${RUNNER_VERSION}
COPY install-runner.ps1 .
RUN .\install-runner.ps1; Remove-Item .\install-runner.ps1 -Force
COPY entrypoint.ps1 .
ENTRYPOINT ["pwsh.exe", ".\\entrypoint.ps1"]