CI/CD Use Case
CI/CD Use Case
Overview
This documentation provides a step-by-step guide on how to integrate versioning into a CI/CD pipeline using a versioning API. By versioning the build scripts themselves, we ensure that each build highlights the current version of the build script. Users can manually increase the version in the web console, and the versioning API will display the current version during the build process.
API Endpoints
Get Version:
[GET] api.versioning.tools/semver/{serviceId}?apiKey={apiKey}
Use Case
Scenario
Consider a CI/CD pipeline where build scripts (e.g., YAML files) are frequently updated. We want to integrate a feature that fetches and displays the current version of the build script during each build. Users can manually increase the version via a web console. This ensures that the build process highlights the version of the build script in use.
Components
CI/CD Pipeline Integration:
The pipeline fetches and displays the current version of the build script during the build process.
Post build TBA
Manual Version Management: Users can manually update the version of the build script via the versioning console.
Implementation
1. CI/CD Pipeline Integration
Fetch and Display Version
Add a step in the build script to fetch the current version from the versioning API and display it during the build process.
2. Manual Version Management
Managers or developers can manually update the version of the build script through the versioning console:
URL:
https://console.versioning.tools
Steps:
Log in to the console.
Select the appropriate service (your CI/CD pipeline's name).
Increase the version number based on changes to the build scripts.
Last updated