48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
# ================================================================
|
|
# Renovate Bot - Cron Pipeline
|
|
# ================================================================
|
|
# WOODPECKER v3 REQUIREMENTS - DO NOT DOWNGRADE SYNTAX:
|
|
#
|
|
# CORRECT (v3):
|
|
# environment:
|
|
# MY_VAR:
|
|
# from_secret: my_secret
|
|
#
|
|
# WRONG (v1/v2 - BREAKS in v3):
|
|
# secrets: [my_secret]
|
|
# secrets:
|
|
# - my_secret
|
|
#
|
|
# This pipeline ONLY runs on the "renovate" cron schedule.
|
|
# It does NOT run on push events - that is handled by .woodpecker.yml
|
|
# ================================================================
|
|
|
|
when:
|
|
- event: cron
|
|
cron: renovate
|
|
|
|
steps:
|
|
run-renovate:
|
|
image: renovate/renovate:latest
|
|
# Pull policy: always ensure latest renovate image
|
|
pull: true
|
|
environment:
|
|
# ⚠️ Woodpecker v3 syntax - from_secret map form required
|
|
RENOVATE_TOKEN:
|
|
from_secret: renovate_token
|
|
# Renovate platform config - self-hosted Gitea
|
|
RENOVATE_PLATFORM: gitea
|
|
RENOVATE_ENDPOINT: https://git.bryanmail.net
|
|
RENOVATE_GIT_AUTHOR: "Renovate Bot <renovate-bot@bryanmail.net>"
|
|
# Repos to scan - space-separated for multiple
|
|
RENOVATE_REPOSITORIES: "homelab/compose-files"
|
|
# Use the renovate.json in the repo root for all other config
|
|
RENOVATE_CONFIG_FILE: renovate.json
|
|
LOG_LEVEL: info
|
|
# MS Teams notifications via Power Automate webhook
|
|
# Sends a card for every PR opened or updated by Renovate
|
|
RENOVATE_TEAMS_WEBHOOK:
|
|
from_secret: teams_webhook_renovate
|
|
commands:
|
|
- renovate
|