Getting Started

This guide is still work in progress.

Let’s start simple

Let’s assume you have a Go project and you want to use the GitLab CI/CD components of Release Process to build and test your project.

All you have to do is to create a .gitlab-ci.yml file in the root of your project and include the release-process/go-binary/pipeline component.

.gitlab.ci.yml

include:
  - component: gitlab.com/release-process/golang/pipeline@v0.1.0

This will create a pipeline that lints, tests and builds your Go project.

The pipeline will consist of

  • a golang:golangci-lint job that runs the golangci-lint linter
  • a golang:go-test job that runs the go test ./... command
  • a golang:go-build job that builds your project using go build.