-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Describe versioning in KRCI (#412)
- Loading branch information
1 parent
e9e9feb
commit 2557ab0
Showing
21 changed files
with
149 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
title: "Artifact Versioning in KubeRocketCI" | ||
description: "Explanation of artifact versioning types in KubeRocketCI, including default and semantic versioning, and how to customize versioning patterns for codebases." | ||
sidebar_label: "Artifact Versioning" | ||
--- | ||
<!-- markdownlint-disable MD025 --> | ||
|
||
# Artifact Versioning in KubeRocketCI | ||
|
||
<head> | ||
<link rel="canonical" href="https://docs.kuberocketci.io/docs/user-guide/artifact-versioning" /> | ||
</head> | ||
|
||
This page describes artifact versioning types in KubeRocketCI, outlining their differences and versioning patterns. | ||
|
||
Artifact versioning in KubeRocketCI is designed to ensure each build and deployment can be uniquely identified, managed, and traced back to its source. | ||
|
||
Artifact versioning is defined for every codebase individually when creating a codebase: | ||
|
||
 | ||
|
||
A new application version appears when a build pipeline run completes successfully. A successfully built artifact is marked with the new version once the `git-tag`, `update-cbb`, and `update-cbis` steps complete successfully: | ||
|
||
 | ||
|
||
Application version can also be seen in the pipeline that built the version: | ||
|
||
 | ||
|
||
## Versioning Types | ||
|
||
KubeRocketCI supports two versioning types: default and semver. They offer different patterns for tagging codebases. | ||
|
||
### Default Versioning | ||
|
||
Default versioning generates versions based on the branch name and datetime, e.g. (`BRANCH-DATETIME`): | ||
|
||
 | ||
|
||
### Semantic Versioning | ||
|
||
Semantic versioning (semver) structures versions as `MAJOR.MINOR.PATCH-BUILD_ID`, based on the [semantic versioning standards](https://semver.org/): | ||
|
||
 | ||
|
||
Several other resources are also involved in managing semantic versioning. | ||
|
||
The first resource is **CodebaseBranch**. It contains data major version and build number for a specific branch. Besides, it contains codebase versioning-related data, including: | ||
|
||
- **Version History**: A record of all versions generated from the branch. | ||
- **Build Information**: Details of the current and most recent successful builds, which may include version identifiers. | ||
|
||
**CodebaseBranch** data is displayed in the codebase details page: | ||
|
||
 | ||
|
||
The second resource is **CodebaseImageStream**. It contains application container versions built for container registry. The available container versions are displayed in the environment details page when deploying an application: | ||
|
||
 | ||
|
||
## Custom Versioning | ||
|
||
User can adjust artifact versioning pattern by updating [`get-version`](https://github.com/epam/edp-tekton/tree/master/charts/pipelines-library/templates/tasks/getversion) CI step to address your personal needs. | ||
|
||
## Related Articles | ||
|
||
* [Add Application](add-application.md) | ||
* [Add Cluster](add-cluster.md) | ||
* [Manage GitOps](gitops.md) | ||
* [Manage Registries](manage-container-registries.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+205 KB
versioned_docs/version-3.10/assets/user-guide/versioning/codebase_versioning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+155 KB
versioned_docs/version-3.10/assets/user-guide/versioning/codebasebranch_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+149 KB
...ned_docs/version-3.10/assets/user-guide/versioning/codebaseimagestream_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+154 KB
versioned_docs/version-3.10/assets/user-guide/versioning/default_versioning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+155 KB
versioned_docs/version-3.10/assets/user-guide/versioning/semantic_versioning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+130 KB
versioned_docs/version-3.10/assets/user-guide/versioning/versions_in_pipelines.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions
70
versioned_docs/version-3.10/user-guide/artifact-versioning.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
title: "Artifact Versioning in KubeRocketCI" | ||
description: "Explanation of artifact versioning types in KubeRocketCI, including default and semantic versioning, and how to customize versioning patterns for codebases." | ||
sidebar_label: "Artifact Versioning" | ||
--- | ||
<!-- markdownlint-disable MD025 --> | ||
|
||
# Artifact Versioning in KubeRocketCI | ||
|
||
<head> | ||
<link rel="canonical" href="https://docs.kuberocketci.io/docs/user-guide/artifact-versioning" /> | ||
</head> | ||
|
||
This page describes artifact versioning types in KubeRocketCI, outlining their differences and versioning patterns. | ||
|
||
Artifact versioning in KubeRocketCI is designed to ensure each build and deployment can be uniquely identified, managed, and traced back to its source. | ||
|
||
Artifact versioning is defined for every codebase individually when creating a codebase: | ||
|
||
 | ||
|
||
A new application version appears when a built pipeline run completes successfully. A successfully built artifact is marked with the new version on the `git-tag` step: | ||
|
||
 | ||
|
||
Application version can also be seen in the pipeline that built the version: | ||
|
||
 | ||
|
||
## Versioning Types | ||
|
||
KubeRocketCI supports two versioning types: default and semver. They offer different patterns for tagging codebases. | ||
|
||
### Default Versioning | ||
|
||
Default versioning generates versions based on the branch name and datetime, e.g. (`BRANCH-DATETIME`): | ||
|
||
 | ||
|
||
### Semantic Versioning | ||
|
||
Semantic versioning (semver) structures versions as `MAJOR.MINOR.PATCH-BUILD_ID`, based on the [semantic versioning standards](https://semver.org/): | ||
|
||
 | ||
|
||
Several other resources are also involved in managing semantic versioning. | ||
|
||
The first resource is **CodebaseBranch**. It contains data major version and build number for a specific branch. Besides, it contains codebase versioning-related data, including: | ||
|
||
- **Version History**: A record of all versions generated from the branch. | ||
- **Build Information**: Details of the current and most recent successful builds, which may include version identifiers. | ||
|
||
CodebaseBranch data is displayed in the codebase details page: | ||
|
||
 | ||
|
||
The second resource is **CodebaseImageStream**. It contains application container versions built for container registry. The available container versions are displayed in the environment details page when deploying an application: | ||
|
||
 | ||
|
||
## Custom Versioning | ||
|
||
User can adjust artifact versioning pattern by updating [`get-version`](https://github.com/epam/edp-tekton/tree/master/charts/pipelines-library/templates/tasks/getversion) CI step to address your personal needs. | ||
|
||
## Related Articles | ||
|
||
* [Add Application](add-application.md) | ||
* [Add Cluster](add-cluster.md) | ||
* [Manage GitOps](gitops.md) | ||
* [Manage Registries](manage-container-registries.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters