Final touches to setup Dependabot
This commit is contained in:
+14
-13
@@ -11,27 +11,28 @@ test_async:
|
|||||||
- npm install
|
- npm install
|
||||||
- npm test
|
- npm test
|
||||||
|
|
||||||
.dependabot:
|
variables:
|
||||||
|
DEPENDABOT_IMAGE: docker.io/andrcuns/dependabot-gitlab:0.23.0
|
||||||
|
|
||||||
|
.dependabot-gitlab:
|
||||||
image:
|
image:
|
||||||
name: docker.io/andrcuns/dependabot-gitlab:0.22.4
|
name: $DEPENDABOT_IMAGE
|
||||||
entrypoint: ['']
|
entrypoint: ['']
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
PACKAGE_MANAGER: $CI_JOB_NAME
|
|
||||||
RAILS_ENV: production
|
RAILS_ENV: production
|
||||||
SECRET_KEY_BASE: key
|
SECRET_KEY_BASE: key
|
||||||
|
PACKAGE_MANAGER: $CI_JOB_NAME
|
||||||
SETTINGS__GITLAB_URL: $CI_SERVER_URL
|
SETTINGS__GITLAB_URL: $CI_SERVER_URL
|
||||||
SETTINGS__STANDALONE: 'true'
|
SETTINGS__STANDALONE: 'true'
|
||||||
SETTINGS__LOG_COLOR: 'true'
|
SETTINGS__LOG_COLOR: 'true'
|
||||||
before_script:
|
|
||||||
- cd /home/dependabot/app
|
|
||||||
script:
|
script:
|
||||||
- bundle exec rake "dependabot:update[$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME,$PACKAGE_MANAGER,/]"
|
- cd /home/dependabot/app
|
||||||
|
- bundle exec rake "dependabot:update[$PROJECT_PATH,$PACKAGE_MANAGER,$DIRECTORY]"
|
||||||
|
|
||||||
|
npm:
|
||||||
|
extends: .dependabot-gitlab
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule" && $SCHEDULE_NAME == "dependabot"'
|
- if: $DEPENDENCY_UPDATES_DISABLED
|
||||||
|
when: never
|
||||||
gitsubmodule:
|
- if: '$CI_PIPELINE_SOURCE == "schedule" && $PACKAGE_MANAGER_SET =~ /(\bnpm|yarn\b)/'
|
||||||
extends: .dependabot
|
|
||||||
|
|
||||||
pip:
|
|
||||||
extends: .dependabot
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ updates:
|
|||||||
- package-ecosystem: npm
|
- package-ecosystem: npm
|
||||||
directory: /
|
directory: /
|
||||||
schedule:
|
schedule:
|
||||||
interval: daily
|
interval: weekly
|
||||||
open-pull-requests-limit: 3
|
open-pull-requests-limit: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user