-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
39 lines (34 loc) · 930 Bytes
/
.gitlab-ci.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
image: node:14
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- node_modules/
test_async:
script:
- npm install [email protected] -g
- npm install
- npm test
variables:
DEPENDABOT_IMAGE: docker.io/andrcuns/dependabot-gitlab:0.23.0
.dependabot-gitlab:
image:
name: $DEPENDABOT_IMAGE
entrypoint: ['']
variables:
GIT_STRATEGY: none
RAILS_ENV: production
SECRET_KEY_BASE: key
PACKAGE_MANAGER: npm
SETTINGS__GITLAB_URL: $CI_SERVER_URL
SETTINGS__STANDALONE: 'true'
SETTINGS__LOG_COLOR: 'true'
script:
- cd /home/dependabot/app
- bundle exec rake "dependabot:update[$PROJECT_PATH,$PACKAGE_MANAGER,$DIRECTORY]"
dependabot:
extends: .dependabot-gitlab
rules:
- if: $DEPENDENCY_UPDATES_DISABLED
when: never
- if: '$CI_PIPELINE_SOURCE == "schedule" && $PACKAGE_MANAGER_SET =~ /(\bnpm|yarn\b)/'