feat: Add dependabot for gitlab
This commit is contained in:
parent
d5e79bf3dc
commit
ba3b0b7294
2 changed files with 66 additions and 0 deletions
|
@ -108,3 +108,39 @@ deploy_commit_image_to_tag:
|
|||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA$IMAGE_TYPE $CI_REGISTRY_IMAGE:latest$IMAGE_TYPE
|
||||
- docker push $CI_REGISTRY_IMAGE:$BUILD_VERSION$IMAGE_TYPE
|
||||
- docker push $CI_REGISTRY_IMAGE:latest$IMAGE_TYPE
|
||||
|
||||
.dependabot-gitlab:
|
||||
image:
|
||||
name: docker.io/andrcuns/dependabot-gitlab:0.4.3
|
||||
entrypoint: [""]
|
||||
variables:
|
||||
GIT_STRATEGY: none
|
||||
PACKAGE_MANAGER: $CI_JOB_NAME
|
||||
RAILS_ENV: production
|
||||
SETTINGS__STANDALONE: "true"
|
||||
SETTINGS__GITLAB_URL: $CI_SERVER_URL
|
||||
SETTINGS__GITLAB_ACCESS_TOKEN: $GITLAB_TOKEN
|
||||
before_script:
|
||||
- cd /home/dependabot/app
|
||||
script:
|
||||
- bundle exec rake "dependabot:update[$PROJECT_PATH,$PACKAGE_MANAGER,$DIRECTORY]"
|
||||
# only:
|
||||
# - schedules
|
||||
|
||||
npm:
|
||||
extends: .dependabot-gitlab
|
||||
only:
|
||||
variables:
|
||||
- $PACKAGE_MANAGER_SET =~ /(\bnpm|yarn\b)/
|
||||
|
||||
mix:
|
||||
extends: .dependabot-gitlab
|
||||
only:
|
||||
variables:
|
||||
- $PACKAGE_MANAGER_SET =~ /\bmix\b/
|
||||
|
||||
docker:
|
||||
extends: .dependabot-gitlab
|
||||
only:
|
||||
variables:
|
||||
- $PACKAGE_MANAGER_SET =~ /\bdocker\b/
|
||||
|
|
30
.gitlab/dependabot.yml
Normal file
30
.gitlab/dependabot.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: docker
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: mix
|
||||
directory: "/apps/admin"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: mix
|
||||
directory: "/apps/app"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: mix
|
||||
directory: "/apps/content"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: mix
|
||||
directory: "/apps/core"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: npm
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
- package-ecosystem: npm
|
||||
directory: "/apps/app/assets"
|
||||
schedule:
|
||||
interval: "daily"
|
Loading…
Reference in a new issue