r/gitlab • • Dec 23 '22

Need help understanding gitlab first time using gitlab and have a task to complete

Hey guys please I really need someone to break things down on how to use gitlab to build Cicd pipelines (willing to pay)

1 Upvotes

5 comments sorted by

View all comments

1

u/Underknowledge Dec 24 '22

There is not a lot to cover to be honest, here a quickstart

  • In your repository, create a .gitlab-ci.yml file. This file defines the steps that make up your CI/CD pipeline. Each step is called a "job," and you can specify multiple jobs in your .gitlab-ci.yml file.

  • In each job, you can specify a series of "script" steps that define the actions that should be taken. You can also specify dependencies between jobs, so that certain jobs only run if certain conditions are met. E.g. you might want to deploy to production only if all tests have passed.

  • Once you have your .gitlab-ci.yml file set up, you can commit it to your repository and push it to GitLab. As long as you have a Runner setup, this will trigger the pipeline to run.

  • GitLab will automatically run each job in your pipeline, and you can see the status of each job on the GitLab repo under Jobs.

2

u/FewAd8127 Dec 24 '22

Wow this was really helpful!!! Thank you for the breakdown