Skip to content

Commit 6ca90c4

Browse files
committed
Add gitlab config.
1 parent c665632 commit 6ca90c4

File tree

3 files changed

+348
-0
lines changed

3 files changed

+348
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ tests.xml
22
coverage.*
33
codeclimate.json
44
/dinit
5+
/keys.txt
56
/*.log

.gitlab-conf.yml

Lines changed: 344 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,344 @@
1+
project:
2+
# Set whether or not merge requests can be merged with skipped jobs. Type: boolean
3+
allow_merge_on_skipped_pipeline: null
4+
# Set whether or not a pipeline triggerer is allowed to approve deployments. Type:
5+
# boolean
6+
allow_pipeline_trigger_approve_deployment: false
7+
# One of disabled, private or enabled. Type: string
8+
analytics_access_level: enabled
9+
# Auto-cancel pending pipelines. This action toggles between an enabled state and
10+
# a disabled state; it is not a boolean. Type: string
11+
auto_cancel_pending_pipelines: enabled
12+
# Auto Deploy strategy (continuous, manual, or timed_incremental). Type: string
13+
auto_devops_deploy_strategy: continuous
14+
# Enable Auto DevOps for this project. Type: boolean
15+
auto_devops_enabled: false
16+
# Set whether auto-closing referenced issues on default branch. Type: boolean
17+
autoclose_referenced_issues: true
18+
# The Git strategy. Defaults to fetch. Type: string
19+
build_git_strategy: fetch
20+
# The maximum amount of time, in seconds, that a job can run. Type: integer
21+
build_timeout: 3600
22+
# One of disabled, private, or enabled. Type: string
23+
builds_access_level: enabled
24+
# Enable or disable running pipelines in the parent project for merge requests
25+
# from forks. (Introduced in GitLab 15.3.) Type: boolean
26+
ci_allow_fork_pipelines_to_run_in_parent_project: true
27+
# The path to CI configuration file. Type: string
28+
ci_config_path: ""
29+
# Default number of revisions for shallow cloning. Type: integer
30+
ci_default_git_depth: 20
31+
# Enable or disable prevent outdated deployment jobs. Type: boolean
32+
ci_forward_deployment_enabled: true
33+
# Enable or disable allow job retries for rollback deployments. Type: boolean
34+
ci_forward_deployment_rollback_allowed: true
35+
# Set whether or not caches should be separated by branch protection status. Type:
36+
# boolean
37+
ci_separated_caches: true
38+
# Update the image cleanup policy for this project. Accepts: cadence (string),
39+
# keep_n (integer), older_than (string), name_regex (string), name_regex_delete
40+
# (string), name_regex_keep (string), enabled (boolean). Type: hash
41+
container_expiration_policy:
42+
cadence: 1d
43+
enabled: false
44+
keep_n: 10
45+
name_regex_delete: .*
46+
name_regex_keep: null
47+
older_than: 90d
48+
# Set visibility of container registry, for this project, to one of disabled,
49+
# private or enabled. Type: string
50+
container_registry_access_level: enabled
51+
# The default branch name. Type: string
52+
default_branch: main
53+
# Short project description. Type: string
54+
description: Specialized init for Docker containers.
55+
# Enable email notifications. Type: boolean
56+
emails_enabled: true
57+
# Enforce auth checks on uploads. Type: boolean
58+
enforce_auth_checks_on_uploads: true
59+
# One of disabled, private, or enabled. Type: string
60+
environments_access_level: disabled
61+
# The classification label for the project. Type: string
62+
external_authorization_classification_label: ""
63+
# One of disabled, private, or enabled. Type: string
64+
feature_flags_access_level: disabled
65+
# One of disabled, private, or enabled. Type: string
66+
forking_access_level: enabled
67+
# Enable group runners for this project. Type: boolean
68+
group_runners_enabled: true
69+
# URL the repository was imported from. Type: string
70+
import_url: null
71+
# One of disabled, private, or enabled. Type: string
72+
infrastructure_access_level: disabled
73+
# Template used to suggest names for branches created from issues. (Introduced in
74+
# GitLab 15.6.) Type: string
75+
issue_branch_template: null
76+
# One of disabled, private, or enabled. Type: string
77+
issues_access_level: enabled
78+
# Default description for Issues. Description is parsed with GitLab Flavored
79+
# Markdown. See Templates for issues and merge requests. Type: string
80+
issues_template: null
81+
# Disable or enable the ability to keep the latest artifact for this project.
82+
# Type: boolean
83+
keep_latest_artifact: true
84+
# Enable LFS. Type: boolean
85+
lfs_enabled: true
86+
# Template used to create merge commit message in merge requests. (Introduced in
87+
# GitLab 14.5.) Type: string
88+
merge_commit_template: null
89+
# Set the merge method used. Type: string
90+
merge_method: merge
91+
# Enable or disable merge pipelines. Type: boolean
92+
merge_pipelines_enabled: false
93+
# One of disabled, private, or enabled. Type: string
94+
merge_requests_access_level: enabled
95+
# Default description for merge requests. Description is parsed with GitLab
96+
# Flavored Markdown. See Templates for issues and merge requests. Type: string
97+
merge_requests_template: null
98+
# Enable or disable merge trains. Type: boolean
99+
merge_trains_enabled: false
100+
# One of disabled, private, or enabled. Type: string
101+
monitor_access_level: disabled
102+
# Set whether merge requests can only be merged when all the discussions are
103+
# resolved. Type: boolean
104+
only_allow_merge_if_all_discussions_are_resolved: false
105+
# Indicates that merges of merge requests should be blocked unless all status
106+
# checks have passed. Defaults to false.Introduced in GitLab 15.5 with feature
107+
# flag only_allow_merge_if_all_status_checks_passed disabled by default. The
108+
# feature flag was enabled by default in GitLab 15.9. Type: boolean
109+
only_allow_merge_if_all_status_checks_passed: false
110+
# Set whether merge requests can only be merged with successful jobs. Type:
111+
# boolean
112+
only_allow_merge_if_pipeline_succeeds: false
113+
# Enable or disable packages repository feature. Type: boolean
114+
packages_enabled: true
115+
# One of disabled, private, enabled, or public. Type: string
116+
pages_access_level: enabled
117+
# Show link to create/view merge request when pushing from the command line. Type:
118+
# boolean
119+
printing_merge_request_link_enabled: true
120+
# If true, jobs can be viewed by non-project members. Type: boolean
121+
public_jobs: true
122+
# One of disabled, private, or enabled. Type: string
123+
releases_access_level: enabled
124+
# Enable Delete source branch option by default for all new merge requests. Type:
125+
# boolean
126+
remove_source_branch_after_merge: true
127+
# One of disabled, private, or enabled. Type: string
128+
repository_access_level: enabled
129+
# Allow users to request member access. Type: boolean
130+
request_access_enabled: true
131+
# One of disabled, private, enabled or public. Type: string
132+
requirements_access_level: disabled
133+
# Automatically resolve merge request diffs discussions on lines changed with a
134+
# push. Type: boolean
135+
resolve_outdated_diff_discussions: false
136+
# Allow only users with the Maintainer role to pass user-defined variables when
137+
# triggering a pipeline. For example when the pipeline is triggered in the UI,
138+
# with the API, or by a trigger token. Type: boolean
139+
restrict_user_defined_variables: false
140+
# (GitLab 14.9 and later) Security and compliance access level. One of disabled,
141+
# private, or enabled. Type: string
142+
security_and_compliance_access_level: disabled
143+
# Enable or disable Service Desk feature. Type: boolean
144+
service_desk_enabled: false
145+
# Enable shared runners for this project. Type: boolean
146+
shared_runners_enabled: true
147+
# One of disabled, private, or enabled. Type: string
148+
snippets_access_level: disabled
149+
# Template used to create squash commit message in merge requests. (Introduced in
150+
# GitLab 14.6.) Type: string
151+
squash_commit_template: null
152+
# One of never, always, default_on, or default_off. Type: string
153+
squash_option: default_off
154+
# The commit message used to apply merge request suggestions. Type: string
155+
suggestion_commit_message: null
156+
# The list of topics for the project. This replaces any existing topics that are
157+
# already added to the project. (Introduced in GitLab 14.0.) Type: array
158+
topics:
159+
- docker
160+
- go
161+
- init
162+
# One of disabled, private, or enabled. Type: string
163+
wiki_access_level: disabled
164+
avatar: ""
165+
# expires_at: Share expiration date in ISO 8601 format: 2016-09-26. Type: string
166+
# group_access: The role (access_level) to grant the group. Type: integer
167+
# group_id: The ID of the group to share with. Type: integer
168+
shared_with_groups: []
169+
approvals:
170+
# Allow or prevent overriding approvers per merge request. Type: boolean
171+
disable_overriding_approvers_per_merge_request: false
172+
# Allow or prevent authors from self approving merge requests; true means authors
173+
# can self approve. Type: boolean
174+
merge_requests_author_approval: false
175+
# Allow or prevent committers from self approving merge requests. Type: boolean
176+
merge_requests_disable_committers_approval: false
177+
# Require approver to enter a password to authenticate before adding the approval.
178+
# Type: boolean
179+
require_password_to_approve: false
180+
# Reset approvals on a new push. Type: boolean
181+
reset_approvals_on_push: true
182+
# Reset approvals from Code Owners if their files changed. Can be enabled only if
183+
# reset_approvals_on_push is disabled. Type: boolean
184+
selective_code_owner_removals: false
185+
# applies_to_all_protected_branches: Whether the rule is applied to all protected
186+
# branches. If set to true, the value of protected_branch_ids is ignored. Default
187+
# is false. Introduced in GitLab 15.3. Type: boolean
188+
# approvals_required: The number of required approvals for this rule. Type:
189+
# integer
190+
# group_ids: The IDs of groups as approvers. Type: Array
191+
# id: The ID of a approval rule. Type: integer
192+
# name: The name of the approval rule. Type: string
193+
# protected_branch_ids: The IDs of protected branches to scope the rule by. To
194+
# identify the ID, use the API. Type: Array
195+
# rule_type: The type of rule. any_approver is a pre-configured default rule with
196+
# approvals_required at 0. Other rules are regular and report_approver. Type:
197+
# string
198+
# user_ids: The IDs of users as approvers. If you provide both user_ids and
199+
# usernames, both lists of users are added. Type: Array
200+
approval_rules: []
201+
push_rules:
202+
# All commit author emails must match this, for example @my-company.com$. Type:
203+
# string
204+
author_email_regex: ""
205+
# All branch names must match this, for example `(feature. Type: string
206+
branch_name_regex: null
207+
# Users can only push commits to this repository if the committer email is one of
208+
# their own verified emails. Type: boolean
209+
commit_committer_check: null
210+
# No commit message is allowed to match this, for example ssh\:\/\/. Type: string
211+
commit_message_negative_regex: null
212+
# All commit messages must match this, for example Fixed \d+\..*. Type: string
213+
commit_message_regex: ""
214+
# Deny deleting a tag. Type: boolean
215+
deny_delete_tag: false
216+
# All committed filenames must not match this, for example `(jar. Type: string
217+
file_name_regex: ""
218+
# Maximum file size (MB). Type: integer
219+
max_file_size: 0
220+
# Restrict commits by author (email) to existing GitLab users. Type: boolean
221+
member_check: false
222+
# GitLab rejects any files that are likely to contain secrets. Type: boolean
223+
prevent_secrets: false
224+
# Reject commits when they are not GPG signed. Type: boolean
225+
reject_unsigned_commits: null
226+
forked_from_project: 0
227+
# color: The color of the label given in 6-digit hex notation with leading '#'
228+
# sign (for example, #FFAABB) or one of the CSS color names. Type: string
229+
# description: The description of the label. Type: string
230+
# id: The ID or title of a group's label. Type: integer or string
231+
# name: The name of the label. Type: string
232+
# priority: The priority of the label. Must be greater or equal than zero or null
233+
# to remove the priority. Type: integer
234+
labels: []
235+
# allow_force_push: When enabled, members who can push to this branch can also
236+
# force push. Type: boolean
237+
# allowed_to_merge: Array of merge access levels, with each described by a hash of
238+
# the form {user_id: integer}, {group_id: integer}, or {access_level: integer}.
239+
# Type: array
240+
# allowed_to_push: Array of push access levels, with each described by a hash of
241+
# the form {user_id: integer}, {group_id: integer}, or {access_level: integer}.
242+
# Type: array
243+
# allowed_to_unprotect: Array of unprotect access levels, with each described by a
244+
# hash of the form {user_id: integer}, {group_id: integer}, {access_level:
245+
# integer}, or {id: integer, _destroy: true} to destroy an existing access level.
246+
# The access level No access is not available for this field. Type: array
247+
# code_owner_approval_required: Prevent pushes to this branch if it matches an
248+
# item in the CODEOWNERS file. Type: boolean
249+
# name: The name of the branch or wildcard. Type: string
250+
protected_branches:
251+
- allow_force_push: false
252+
allowed_to_merge:
253+
# Maintainers
254+
- access_level: 40
255+
group_id: null
256+
id: 73629210
257+
user_id: null
258+
allowed_to_push:
259+
# Maintainers
260+
- access_level: 40
261+
deploy_key_id: null
262+
group_id: null
263+
id: 75292570
264+
user_id: null
265+
allowed_to_unprotect: []
266+
code_owner_approval_required: false
267+
name: main
268+
# allowed_to_create: Array of access levels allowed to create tags, with each
269+
# described by a hash of the form {user_id: integer}, {group_id: integer}, or
270+
# {access_level: integer}. Type: array
271+
# name: The name of the tag or wildcard. Type: string
272+
protected_tags:
273+
- allowed_to_create:
274+
# Maintainers
275+
- access_level: 40
276+
deploy_key_id: null
277+
group_id: null
278+
user_id: null
279+
name: v*
280+
# description: The description of the variable. Default: null. Introduced in
281+
# GitLab 16.2. Type: string
282+
# environment_scope: The environment_scope of the variable. Default: *. Type:
283+
# string
284+
# key: The key of a variable; must have no more than 255 characters; only A-Z,
285+
# a-z, 0-9, and _ are allowed. Type: string
286+
# masked: Whether the variable is masked. Default: false. Type: boolean
287+
# protected: Whether the variable is protected. Default: false. Type: boolean
288+
# raw: Whether the variable is treated as a raw string. Default: false. When true,
289+
# variables in the value are not expanded. Type: boolean
290+
# value: The value of a variable. Type: string
291+
# variable_type: The type of a variable. Available types are: env_var (default)
292+
# and file. Type: string
293+
variables:
294+
- description: null
295+
environment_scope: '*'
296+
key: GITLAB_API_TOKEN
297+
masked: true
298+
protected: true
299+
raw: true
300+
# sops:enc
301+
value: ENC[AES256_GCM,data:DlOS9c2RC3pGHbgArGHnxnIkdP7OajOSljk=,iv:3QuX2YleymFGQMKZgwGzBUDmNAQi0XVIWer/p2MT8HQ=,tag:iSwCCEtbXQinM1Rf8flafw==,type:str]
302+
variable_type: env_var
303+
- description: null
304+
environment_scope: '*'
305+
key: SOPS_AGE_KEY_FILE
306+
masked: false
307+
protected: true
308+
raw: false
309+
# sops:enc
310+
value: ENC[AES256_GCM,data:NJmGd+tTByZg52EiyMGVGDY5FPAAQClhZPGThefy4+xOb65EuFA5nvKhjmsAdGvg1+YNmCQrdAbDeWIT+3PnOiE+BQFA8RxvJgVvajMaGIG7yaI5hd0b9MQLYos8Jm8elNdiin3+OaG/EkYUoUMGuamo7fTswKshsUxtZ4Z0q30hTl23cOsLTZWotz84xEswDL3ojvSKlEPntlVJILN18vsJ3UAdLqspwBdfojeCYCrR45SG2gHRhlO9OhSx,iv:EaIkoxdwbhKZEujvZ4claatml2U9FwsKwV9N0wo9kS0=,tag:0tesnpIOYkMyOELFnv50Cg==,type:str]
311+
variable_type: file
312+
# active: The activation of pipeline schedule. If false is set, the pipeline
313+
# schedule is initially deactivated. Type: boolean
314+
# cron: The cron schedule, for example: 0 1 * * *. Type: string
315+
# cron_timezone: The time zone supported by ActiveSupport::TimeZone (for example
316+
# Pacific Time (US & Canada)), or TZInfo::Timezone (for example
317+
# America/Los_Angeles). Type: string
318+
# description: The description of the pipeline schedule. Type: string
319+
# id: The pipeline schedule ID. Type: integer
320+
# ref: The branch or tag name that is triggered. Type: string
321+
# variables: Array of variables, with each described by a hash of the form {key:
322+
# string, value: string, variable_type: string}. Type: array
323+
pipeline_schedules: []
324+
sops:
325+
kms: []
326+
gcp_kms: []
327+
azure_kv: []
328+
hc_vault: []
329+
age:
330+
- recipient: age1eju0y0zf7chq7r33kcpcqac923vj0334a3uzdjdjtqvk7g2ghcus99wf5s
331+
enc: |
332+
-----BEGIN AGE ENCRYPTED FILE-----
333+
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBNS1ZnZDhmMlNyYlhqZnlh
334+
bHJkbnhTaUNuT1NnUmwyZXlxL0JqdDdlUGdZCi9aQUFXRmtxNkRQNWxZYWo4NzVn
335+
Wjc5dXpsblFiRnhYU21HVXNEanRWRGsKLS0tIDVraTgzZWI3VzZWNlVSNDVkVklh
336+
bHJKaHA5NVl3eitxMytFVk4xSWtOaUEKh6Ph/gMQbTjGZ4EacQeq37pDZdfg8/oS
337+
ED+X3xo7JAWF7+M6drU8r0TYWFb4WuUnJ00Kf4rudz4KGhadeRgVSw==
338+
-----END AGE ENCRYPTED FILE-----
339+
lastmodified: "2023-10-05T20:37:03Z"
340+
mac: ENC[AES256_GCM,data:xaGGPMLKcwVJt5RsdRDZNhgn2MkmYTaIYW0IYqBpw/jv9uZ7TbK4pbzOZ9eyakP9UBuNWbb7UDy/nw7OjYbqxl2+xJ8Qhn7kC+imbr51+Z9O9FMx2dD9Q4Py2drqS1PVNb3MMxxJoCKYCq3kOAgeR2m6gbbDzuF3GCRz/WP7p68=,iv:NZkEEnSvZ4A45N2gTPE3REKndcJ363hRwSBYDeLHEp0=,tag:K2jbJuPM8CMamSkV1DrETw==,type:str]
341+
pgp: []
342+
encrypted_comment_regex: sops:enc
343+
mac_only_encrypted: true
344+
version: 3.7.3

.sops.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
creation_rules:
2+
- path_regex: ^\.gitlab-conf\.yml$
3+
age: age1eju0y0zf7chq7r33kcpcqac923vj0334a3uzdjdjtqvk7g2ghcus99wf5s

0 commit comments

Comments
 (0)