-
Notifications
You must be signed in to change notification settings - Fork 275
/
.gitlab-ci.example.yml
126 lines (108 loc) · 2.4 KB
/
.gitlab-ci.example.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# GitLab CI configuration for Dependabot
#
# Usage:
# * Set the required global variables used in `./generic-update-script.rb`
# https://docs.gitlab.com/ee/ci/variables/#variables
#
# * Create a pipeline schedule for each managed repository
# https://docs.gitlab.com/ee/user/project/pipelines/schedules.html
#
# * Set in the schedule required variables
#
# PROJECT_PATH = group/repository
# PACKAGE_MANAGER_SET = bundler,composer,npm_and_yarn
#
# https://github.com/dependabot/dependabot-script
# https://docs.gitlab.com/ee/ci/yaml/
build-image:
stage: build
script:
- docker build -t "dependabot/dependabot-script" -f Dockerfile .
.dependabot:
image: dependabot/dependabot-script
variables:
PACKAGE_MANAGER: $CI_JOB_NAME
script:
- bundle exec ruby ./generic-update-script.rb
only:
- schedules
bundler:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bbundler\b/
pip:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bpip\b/
npm_and_yarn:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /(\bnpm|yarn\b)/
maven:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bmaven\b/
gradle:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bgradle\b/
cargo:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bcargo\b/
hex:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bhex\b/
composer:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bcomposer\b/
nuget:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bnuget\b/
dep:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bdep\b/
go_modules:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bgo_modules\b/
elm:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\belm\b/
submodules:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bsubmodules\b/
docker:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bdocker\b/
terraform:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bterraform\b/
github_actions:
extends: .dependabot
only:
variables:
- $PACKAGE_MANAGER_SET =~ /\bgithub_actions\b/