4.3 KiB
4.3 KiB
Podcastrr - Forgejo Integration Changes
This document summarizes the changes made to integrate Podcastrr with Forgejo for CI/CD and container registry functionality, including Forgejo Actions for automated workflows.
Files Created
Forgejo Actions (New)
-
.forgejo/workflows/build.yml
- CI/CD workflow configuration using Forgejo Actions
- Includes jobs for testing, building Docker images, and notifications
- Automatically builds and pushes Docker images on pushes to the main branch or tags
-
.forgejo/workflows/demo.yaml
- Simple example workflow for Forgejo Actions
- Demonstrates basic functionality as described in the Forgejo Actions user guide
-
README_ACTIONS.md
- Detailed guide for using Forgejo Actions with Podcastrr
- Includes explanations of workflow files, prerequisites, and troubleshooting tips
Previous Integration
-
.drone.yml
(Updated with comments about Forgejo Actions)- Legacy CI/CD pipeline configuration for Forgejo using Drone CI
- Includes steps for testing, building Docker images, and notifications
- Automatically builds and pushes Docker images on pushes to the main branch
-
README_FORGEJO.md
(Updated with Forgejo Actions information)- Comprehensive guide for setting up and using Podcastrr with Forgejo
- Includes instructions for repository setup, secrets configuration, and using the Docker image
-
docker-compose.override.yml.example
- Template for local customization of Docker Compose setup
- Provides examples for development-specific settings
Files Updated
For Forgejo Actions
-
.drone.yml
- Added comments explaining the transition to Forgejo Actions
- Kept for backward compatibility with existing Drone CI setups
-
README_FORGEJO.md
- Updated to include information about Forgejo Actions
- Added sections on configuring secrets for Forgejo Actions
- Reorganized CI/CD pipeline section to prioritize Forgejo Actions
Previous Updates
-
.gitignore
- Added Docker-specific entries
- Added common Python patterns
-
.env.example
- Updated for Docker compatibility (Linux-style paths)
- Added Forgejo-specific configuration variables
- Set production as the default environment
-
docker-compose.yml
- Made it more flexible for Forgejo integration
- Added environment variable interpolation with defaults
- Added commented options for using Forgejo registry
Next Steps
For Forgejo Actions (Recommended)
-
Set up your Forgejo repository
- Follow the instructions in
README_FORGEJO.md
- Follow the instructions in
-
Enable Forgejo Actions
- Ensure "Enable Repository Actions" is checked in your repository settings
- See
README_ACTIONS.md
for detailed instructions
-
Configure Forgejo Actions secrets
- Add the required secrets to your repository's Actions secrets:
FORGEJO_REGISTRY
FORGEJO_USERNAME
FORGEJO_PASSWORD
- Add the required secrets to your repository's Actions secrets:
-
Push to Forgejo
- The Forgejo Actions workflows will automatically run
- View results in the Actions tab of your repository
-
Pull and run the Docker image
- Use the commands in
README_FORGEJO.md
to pull and run your Docker image
- Use the commands in
For Drone CI (Legacy)
-
Configure Drone CI secrets
- Add the required secrets to your Forgejo repository settings:
docker_username
docker_password
webhook_url
(optional)
- Add the required secrets to your Forgejo repository settings:
-
Configure environment variables
- Set up
DRONE_REGISTRY
in your Forgejo CI/CD settings
- Set up
-
Customize for your environment
- Copy
.env.example
to.env
and update with your settings - Copy
docker-compose.override.yml.example
todocker-compose.override.yml
for local customization
- Copy
Additional Information
- The Docker image is built using the existing Dockerfile, which was already well-configured
- Both CI/CD approaches (Forgejo Actions and Drone CI) include testing to ensure code quality
- The Docker Compose setup allows for both local development and production deployment
- Forgejo Actions provides a more integrated experience with Forgejo and follows a syntax similar to GitHub Actions
- The demo workflow (.forgejo/workflows/demo.yaml) provides a simple starting point for understanding Forgejo Actions
- The comprehensive build workflow (.forgejo/workflows/build.yml) demonstrates a complete CI/CD pipeline using Forgejo Actions