diff --git a/.drone.yml b/.drone.yml index 2017f32..3e5c673 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,16 @@ +--- kind: pipeline type: docker -name: default +name: renovate + +trigger: + event: + - cron + - push + - custom + +environment: + LOG_LEVEL: debug services: - name: postgres @@ -62,3 +72,23 @@ steps: - mix deps.get # Run tests - mix test + + - name: renovate - validate config + image: renovate/renovate:39.256 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - renovate-config-validator + + - name: renovate + image: renovate/renovate:39.256 + # https://github.com/renovatebot/renovate/discussions/15049 + commands: + - unset GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL + - renovate + + environment: + RENOVATE_TOKEN: + from_secret: RENOVATE_TOKEN + #GITHUB_COM_TOKEN: + # from_secret: GITHUB_COM_TOKEN diff --git a/config.js b/config.js new file mode 100644 index 0000000..3efb6cf --- /dev/null +++ b/config.js @@ -0,0 +1,16 @@ +module.exports = { + endpoint: "https://git.local-it.org/api/v1/", + gitAuthor: 'Renovate Bot ', + username: 'renovate', + platform: "gitea", + onboarding: true, + autodiscover: true, + persistRepoData: true, + optimizeForDisabled: true, + assignees: [], + labels: ["renovate", "dependencies", "automated"], + onboardingConfig: { + extends: ["config:recommended"], + }, + repositories: ["local-it/mitgliederverwaltung"] +};