terraform-docker-renovate/files/example-gitea-workflow.yaml
Patrick de Ruiter d417281ee0
feat: Repurpose module from Ansible EDA to Renovate bot deployment
Complete rewrite of the module to deploy a Renovate bot for automated
dependency management with Gitea integration.

Breaking Changes:
- Module purpose changed from Ansible EDA to Renovate bot
- All variables restructured for Renovate configuration
- State file path updated to home/docker/renovate/renovate.tfstate
- Volumes changed from EDA rulebooks/logs to config/cache
- Container image now uses renovate/renovate:latest

Added:
- Gitea platform integration with token authentication
- Renovate configuration template (config.js.tpl)
- Repository configuration examples
- Gitea Actions workflow examples
- SonarQube integration examples
- Comprehensive documentation (README, QUICKSTART, MIGRATION_GUIDE)
- CHANGELOG.md for version tracking
- Security best practices

Removed:
- All Ansible EDA-specific configuration
- Traefik labels (not needed for Renovate)
- Old EDA documentation files
- example-rulebook.yml

Updated:
- Complete README with Gitea setup instructions
- terraform.tfvars with Renovate configuration
- All resource names from ansible_eda to renovate
- Backend state path

This is version 2.0.0 - not backward compatible with previous EDA version.
See MIGRATION_GUIDE.md for detailed migration instructions.
2025-11-17 00:32:51 +01:00

43 lines
1.2 KiB
YAML

# Example Gitea Actions workflow for triggering Renovate
# Place this file in: .gitea/workflows/renovate.yaml
name: Renovate
on:
schedule:
# Run daily at 2 AM
- cron: '0 2 * * *'
# Allow manual trigger
workflow_dispatch:
# Run when this workflow file is updated
push:
branches: [main]
paths:
- '.gitea/workflows/renovate.yaml'
jobs:
renovate:
runs-on: ubuntu-latest
steps:
- name: Trigger Renovate Container
run: |
# Option 1: Restart the container to trigger a run
docker restart renovate || echo "Container restart failed or not available"
# Option 2: If using Renovate in one-shot mode, run directly
# docker run --rm \
# -e RENOVATE_PLATFORM=gitea \
# -e RENOVATE_ENDPOINT=${{ secrets.GITEA_ENDPOINT }} \
# -e RENOVATE_TOKEN=${{ secrets.RENOVATE_TOKEN }} \
# -e RENOVATE_GIT_AUTHOR="Renovate Bot <renovate-bot@example.com>" \
# renovate/renovate
- name: Check Renovate Logs
run: |
# Wait a moment for the container to start
sleep 5
# Show recent logs
docker logs renovate --tail 50 || true