-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.yml
74 lines (57 loc) · 2.83 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
# Copyright 2024 Wong Hoi Sing Edison <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# This configures the default provider Vagrant will use.
vagrant_default_provider: libvirt
# GitLab release.
gitlab_runner_release: "17.7"
# GitLab Runner version.
gitlab_runner_version: "{{ _gitlab_runner_version[gitlab_runner_release] }}"
# Limits how many jobs globally can be run concurrently. The most upper limit
# of jobs using all defined runners. 0 does not mean unlimited.
gitlab_runner_concurrent: "1"
# Defines the interval length, in seconds, between new jobs check. The
# default value is 3; if set to 0 or lower, the default value will be used.
gitlab_runner_check_interval: "0"
# Each [[runners]] section defines one runner.
gitlab_runner_runners:
- { name: alvistack/gitlab-runner, url: "", token: "" }
# Absolute path to a directory where builds are stored in the context of
# the selected executor. For example, locally, Docker, or SSH.
gitlab_runner_runners_builds_dir: /home/vagrant
# Absolute path to a directory where build caches will be stored in context
# of selected executor (locally, Docker, SSH). If the docker executor is used,
# this directory needs to be included in its volumes parameter.
gitlab_runner_runners_cache_dir: /var/cache/gitlab-runner
# Use this box to run builds.
gitlab_runner_runners_vagrant_box: alvistack/devel-24.04
# If true, Vagrant will check for updates to the configured box on every
# vagrant up.
gitlab_runner_runners_vagrant_box_check_update: false
# String value of number of CPUs.
gitlab_runner_runners_vagrant_cpus: "8"
# String value containing the memory limit.
gitlab_runner_runners_vagrant_memory: "32768"
# Make container run in Nested mode.
gitlab_runner_runners_vagrant_nested: true
# Name of Libvirt network to which all VMs will be connected.
gitlab_runner_runners_vagrant_management_network_name: gitlab-runner
# Address of network to which all VMs will be connected. Must include
# the address and subnet mask.
gitlab_runner_runners_vagrant_management_network_address: 172.16.121.0/24
# Specify additional volumes that should be mounted.
gitlab_runner_runners_vagrant_synced_folders:
- { src: ./, dest: /vagrant }
- { src: /home/vagrant/.vagrant.d/boxes, dest: /home/vagrant/.vagrant.d/boxes }
- { src: "{{ gitlab_runner_runners_cache_dir }}", dest: /var/cache/gitlab-runner }