How bedrock-oss/bds-versions works
Main Components
• Repository Archive – The core “database” of version information organized by OS (Linux and Windows) and by release type (stable versus preview). This is represented by:
– Directories containing JSON files for each version (e.g., linux, linux_preview, windows, windows_preview)
– The “versions.json” file which serves as an index for the latest stable version.
– Release notes directories for each operating system.
• Automation & CI/CD Pipeline – The GitHub Actions setup (found in the .github/workflows folder) and associated scripts (e.g., fetch.sh, readme.sh) that automatically update the archive.
• Consumers/Clients – The example in the README shows how external scripts or clients (like Curl commands via bash scripts) fetch the latest version info and download the corresponding JSON.
Relationships and Interactions
• The repository acts as a “data store” where updated JSON files and release notes are committed.
• The system is essentially “read-only” for consumers, allowing them to retrieve metadata about the BDS releases.
Architectural Patterns & Design Principles
• Separation of Concerns: The repository is divided into logical sections—the version data (by OS and release type), the release notes, and the automation scripts.
• Automation through CI/CD: GitHub Actions manage the update cycle, ensuring that the repository remains current without manual intervention.
• Extensibility: The design supports the addition of new OS directories or new version types (stable vs. preview) with minimal disruption.
• Convention over configuration: The naming conventions (e.g., version numbers in filenames and directories) allow the system to be predictable and machine-readable.
Relevant Technologies & Libraries
• GitHub Actions for CI/CD automation.
• Shell scripting (Bash) and tools like curl, wget, and jq for data fetching and processing.
• JSON format as the primary data interchange format for version metadata.
Essential Elements
• Clear labels for:
• “GitHub Actions & Automation Scripts”
• “Linux Archive” (including linux and linux_preview)
• “Windows Archive” (including windows and windows_preview)
• “Release Notes” (for Linux and Windows)
• “version.json” as an index
• “Consumers/External Clients”
• Automation flow (from GitHub Actions to repository updates)
• Data delivery (from the repository to consumers via HTTP calls as shown in the README example)