Add Windows runner profiles and configuration for Gitea CI
- Introduced Dockerfiles for various Windows runner profiles: C/C++, .NET, Go, and MSYS. - Added a PowerShell script to start the Gitea runner with appropriate configurations. - Updated Ansible host variables to include new Windows build root and runner configurations. - Enhanced the Windows Gitea runner role to support multiple execution modes (linux_podman and windows_mcr). - Implemented tasks to validate runner execution modes, ensure necessary services are running, and manage Docker containers for Windows runners. - Created a new task file for managing Windows-specific runner operations. - Updated the configuration template to dynamically set paths for runner files and cache directories.
This commit is contained in:
@@ -109,6 +109,7 @@ windows_containers_service_password: "{{ lookup('env', 'WIN_CI_01_PASSWORD') }}"
|
||||
windows_gitea_runner_instance_url: "https://code.alexpires.me"
|
||||
windows_gitea_runner_registration_token: "{{ lookup('env', 'GITEA_RUNNER_REGISTRATION_TOKEN') }}"
|
||||
windows_gitea_runner_build_root: "D:\\GiteaRunner\\builds"
|
||||
windows_gitea_runner_windows_build_root: "D:\\GiteaRunner\\windows-builds"
|
||||
windows_gitea_runner_runners:
|
||||
- profile: cicd-base
|
||||
name: "gitea-runner-cicd-base"
|
||||
@@ -167,3 +168,13 @@ windows_gitea_runner_runners:
|
||||
run_args:
|
||||
- "--privileged"
|
||||
enable_nested_build: true
|
||||
- profile: windows-msys
|
||||
mode: windows_mcr
|
||||
name: "gitea-runner-windows-msys"
|
||||
container_name: "gitea-runner-windows-msys"
|
||||
image: "local/gitea-windows-runner:windows-msys"
|
||||
dockerfile_src: "Dockerfile.windows-msys"
|
||||
labels: "windows:host,windows-msys"
|
||||
config_file: "D:\\GiteaRunner\\windows-msys\\config.yaml"
|
||||
data_dir: "D:\\GiteaRunner\\windows-msys\\data"
|
||||
log_dir: "D:\\Logs\\GiteaRunner\\windows-msys"
|
||||
|
||||
Reference in New Issue
Block a user