blob: 58b235c80a22124d99907bd0d3b5cea929ce1b0c [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 }}"
Mohammed Naser07eff792025-03-17 17:39:06 -040011 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
Mohammed Naser07eff792025-03-17 17:39:06 -040015 RENOVATE_TOKEN: "{{ (zuul.project.canonical_hostname == 'github.com') | ternary(renovate.github_token, omit) }}"
Mohammed Naser3be9d982025-03-17 16:39:32 -040016 # Gerrit
Mohammed Naser07eff792025-03-17 17:39:06 -040017 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) }}"