GitLab CI/CD - 1 : Building a Java Project using Maven and Docker within the GitLab CI pipeline.

In this article, we will create a GitLab CI (continuous integration) pipeline, using Maven and Docker. We’ll use the Java application as an artifact. Whenever someone pushes on a branch of your repository, a pipeline will be triggered on a dedicated virtual machine running jobs described in .gitlab-ci.yml file. We will observe the pipeline’s output. We will do it all step by step.
Also, we will talk about GitLab CI/CD concept and term, Maven Life Cycle, and Maven commands.

Cumhur Akkaya
11 min readJun 24, 2023

Topics we will cover:

1. Introduction to GitLab CI/CD concept

1. a. The benefits of using

1. b. Basic concepts and key terms used in it

1. c. GitLab CI/CD workflow

2. Creating a GitLab Repository and Prerequisites

3. Creating .gitlab-ci.yml (Configuration File) and explanation of it

--

--

Cumhur Akkaya

✦ Multi-Cloud & DevOps Engineer, ✦Technical Writer, ✦AWS Community Builder, ✦LinkedInTop Voice, ✦Believes in learning by doing, ✦ linkedin.com/in/cumhurakkaya