How to publish packages to gitlab package registry

Опубликовано: 26 Январь 2025
на канале: Middleware Technologies
498
0

Here in this video we will try to compile and build a package for maven project and push the artifacts to gitlab package registry.

Blog Ref - https://middlewaretechnologies.in/202...

Table of Content:

01:14 Ensure Gitlab and Gitlab runner installed
02:17 Ensure maven and jdk installed on runner
03:45 Add the CA cert to java trust store cacerts on gitlab runner
08:06 Create a personal access token for gitlab registry access
09:43 Update maven settings with gitlab registry server details on gitlab runner
12:00 Create a blank project in your namespace
13:26 Clone blank project
15:07 Create a maven archetype project
17:15 Update pom.xml with the gitlab registry endpoint in the project
19:28 Create a .gitlab-ci.yml as shown below
22:50 Validate the build artifacts