The new job in the Deploy stage should take over this task for us

A collection of data related to Russia's statistics.
Post Reply
suchona.kani.z
Posts: 196
Joined: Sat Dec 21, 2024 6:13 am

The new job in the Deploy stage should take over this task for us

Post by suchona.kani.z »

We have again saved the following variables in the CI/CD settings of the repository:

• $CONTAINER_REGISTRY(Domain of your Docker Image Registry)
• $CONTAINER_REGISTRY_PASSWORD(Password for the registry)
• $CONTAINER_REGISTRY_USER(User name for the registry)

Our new Git tag with our new version number is $CI_COMMIT_TAGstored in the GitLab variable. The rule about when the job should be executed is particularly important. The job may only be executed if the variable $CI_COMMIT_TAGhas a value and this corresponds to a semantic version, for example v1.2.5.

With this Git tag we can now mark our new Docker image during the build process and publish it to the registry.

Conclusion
By defining a commit message structure, we can automate the versioning bahrain consumer email list process. In addition, the Semantic Release Tool was used, which generates Git tags for us from the commit messages. With the newly released Git tag, I demonstrated a use case in which the new semantic version was used to build a Docker image.

If you have any questions about the topic or the implementation, please feel free to contact me via email pau Teams.

You can find more exciting topics from the adesso world in our previously published blog posts .You also need an environment variable called $GITLAB_TOKEN. The variable $GITLAB_TOKENcontains a token for accessing the repository. You can read how to create an access token here . Semantic-Release looks for this variable to publish a Git tag in your repository. A Git tag is a function for marking points in a version history as important.


Paul is a software engineer at adesso. He enjoys working with new technologies and is enthusiastic about new topics in the field of software architecture.


In our tech blog we take you on an exciting journey through the adesso world. You can find other interesting topics in our previous blog posts.

Would you like to receive our adesso blogging update regularly? Then simply subscribe to our newsletter and you will receive the latest posts from our tech blog conveniently by email.
Post Reply