blob: 14781a25aa83c26bb3a44c3ef0cd9cfab1e0b3b8 [file] [log] [blame]
Mohammed Naser3be9d982025-03-17 16:39:32 -04001- name: Run Renovate
Mohammed Naser964e8ec2025-03-17 17:19:38 -04002 hosts: all
Mohammed Naser3be9d982025-03-17 16:39:32 -04003 tasks:
Mohammed Naser13d35322025-03-17 17:14:59 -04004 - name: Run Renovate
5 ansible.builtin.command: renovate {{ zuul.project.name }}
Mohammed Naser3be9d982025-03-17 16:39:32 -04006 environment:
7 LOG_LEVEL: debug
8 RENOVATE_GIT_AUTHOR: "Renovatebot <renovatebot@vexxhost.dev>"
9 # Common
10 GITHUB_COM_TOKEN: "{{ renovate.github_token }}"
11 RENOVATE_ENDPOINT: "https://{{ zuul.project.canonical_hostname == 'github.com' | ternary('api.github.com', 'review.vexxhost.dev') }}"
12 RENOVATE_PLATFORM: "{{ zuul.project.canonical_hostname == 'github.com' | ternary('github', 'gerrit') }}"
Mohammed Naser9003def2025-03-17 17:04:11 -040013 RENOVATE_ALLOWED_COMMANDS: '["^curl"]'
Mohammed Naser3be9d982025-03-17 16:39:32 -040014 # GitHub
15 RENOVATE_TOKEN: "{{ zuul.project.canonical_hostname == 'github.com' | ternary(renovate.github_token, omit) }}"
16 # Gerrit
17 RENOVATE_USERNAME: "{{ zuul.project.canonical_hostname != 'github.com' | ternary(renovate.gerrit_username, omit) }}"
18 RENOVATE_PASSWORD: "{{ zuul.project.canonical_hostname != 'github.com' | ternary(renovate.gerrit_password, omit) }}"