Refactor Windows Gitea runner Dockerfiles and update CI configuration
This commit is contained in:
@@ -2,7 +2,7 @@ FROM mcr.microsoft.com/windows/servercore:ltsc2022
|
||||
|
||||
SHELL ["powershell", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"]
|
||||
|
||||
# Base image for Windows Gitea runners with Git for Windows tools and gitea runner.
|
||||
# Base image for Windows Gitea runners with Git tools and gitea runner.
|
||||
ARG ACT_RUNNER_VERSION=2.0.0
|
||||
RUN Set-StrictMode -Version Latest; \
|
||||
$ErrorActionPreference = 'Stop'; \
|
||||
|
||||
@@ -5,5 +5,4 @@ SHELL ["powershell", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"]
|
||||
# C/C++ profile with cmake and ninja.
|
||||
RUN choco feature enable -n allowGlobalConfirmation; \
|
||||
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'; \
|
||||
choco install ninja; \
|
||||
choco clean --yes
|
||||
choco install ninja
|
||||
@@ -4,5 +4,4 @@ SHELL ["powershell", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"]
|
||||
|
||||
# .NET profile for building and testing managed workloads.
|
||||
RUN choco feature enable -n allowGlobalConfirmation; \
|
||||
choco install dotnet-sdk --version=8.0.204; \
|
||||
choco clean --yes
|
||||
choco install dotnet-sdk --version=8.0.204
|
||||
|
||||
@@ -4,5 +4,4 @@ SHELL ["powershell", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"]
|
||||
|
||||
# Go profile for Windows builds.
|
||||
RUN choco feature enable -n allowGlobalConfirmation; \
|
||||
choco install golang --version=1.22.4; \
|
||||
choco clean --yes
|
||||
choco install golang --version=1.22.4
|
||||
@@ -0,0 +1,9 @@
|
||||
FROM local/gitea-windows-runner:windows-msys
|
||||
|
||||
SHELL ["powershell", "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command"]
|
||||
|
||||
# Dedicated profile for image builds. Docker daemon access is provided at runtime
|
||||
# through the host named pipe mount configured in host_vars.
|
||||
RUN Set-StrictMode -Version Latest; \
|
||||
$ErrorActionPreference = 'Stop'; \
|
||||
choco install docker-cli --yes --no-progress --limit-output
|
||||
Reference in New Issue
Block a user