Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile, push: Prevent overwriting existing version tags
The IMAGE_GIT_TAG is generated using `git describe` to create a virtual tag for the image, and used in order to tag every push to the repository for later use. However, when an actual git tag exists (e.g., v0.45.0), git describe returns that tag. This behavior makes it possible to accidentally overwrite push an existing version tag in the registry. This change introduces a check to ensure such tags are not overwritten, preserving the integrity of published versions. Signed-off-by: Ram Lavi <[email protected]>
- Loading branch information