Commit Graph

7 Commits

Author SHA1 Message Date
b8b2ee6972 fix: correct jq syntax for updating stats
- Adjusted the jq command for adding values to arrays to use the correct
  syntax for accessing keys.
- Updated the jq command for updating numeric values to use the
  `--argjson` option for proper type handling.

These changes ensure that the script correctly updates the statistics
file without errors, improving the reliability of the data handling.
2025-01-03 17:27:59 +08:00
ca6a80da97 feat: add synchronization statistics logging
- Initialize statistics logging in the mirror script
- Update logging to include total, processed, skipped, success, and failed repositories
- Enhance summary report with detailed statistics after synchronization

This commit introduces a comprehensive logging mechanism for the
repository synchronization process. It tracks various metrics such as
total repositories, processed repositories, and their success or failure
status. This enhancement provides better visibility into the
synchronization process and helps in debugging and monitoring.
2025-01-03 17:26:32 +08:00
f7770955a9 feat: support different SMTP ports for email sending
- Add conditional logic to handle SMTP_PORT 465 for secure
  connections.
- Use standard SMTP for other ports to allow flexibility in
  email server configurations.

This change enhances the email sending functionality by allowing
users to specify different SMTP ports, improving compatibility
with various email service providers. The previous implementation
only supported port 465, which limited its usability.
2025-01-03 17:14:17 +08:00
5821fefcae fix: simplify script execution command
- Remove unnecessary 'true ||' condition from the
  command that calls mirror.sh.
- This change clarifies the intent of the command and
  ensures that the script executes as expected.
2025-01-03 17:10:27 +08:00
534a9ab0e4 feat: add email notification and logging features
- Introduce email notification configuration options in the README
- Create a new config.sh file for managing environment variables
- Implement mail.sh for sending email notifications
- Add logging functionality to main.sh for tracking synchronization processes

These changes enhance the functionality of the script by allowing users to receive email notifications about the synchronization status and maintain logs of the operations performed. The new configuration options provide flexibility in managing email settings and improve the overall usability of the tool.
2025-01-03 17:03:01 +08:00
bf753e1255 feat: add GitHub to Gitea mirror script
- Create a new shell script for mirroring GitHub repositories to Gitea.
- Implement configuration options for GitHub and Gitea credentials.
- Add functionality to skip specific repositories during synchronization.
- Include error handling and logging for better debugging.
- Provide detailed usage instructions and environment variable setup.

This commit introduces a new feature that automates the process of
mirroring GitHub repositories to a Gitea instance. It supports batch
synchronization, allows skipping certain repositories, and includes
a robust error handling mechanism. The script is designed to be
used with crontab for scheduled execution, making it suitable for
regular backups of GitHub repositories to Gitea.
2025-01-03 15:36:19 +08:00
0b7323897f feat: add colocation agent helm chart and sync scripts
- Introduced a new Helm chart for the colocation agent
- Added scripts for syncing images with Skopeo and downloading Helm charts
- Created necessary configuration files and templates for Kubernetes deployment
- Removed obsolete files related to previous implementations

This commit enhances the deployment capabilities of the colocation agent and provides tools for managing Helm charts and Docker images effectively.
2025-01-03 14:06:28 +08:00