Recipes: Continuous Integration on GitLab
Continuous Integration works by pushing small code chunks to your application’s code base hosted in a Git repository, and, to every push, run a pipeline of scripts to build, test, and validate the code changes before merging them into the main branch. This recipe helps you set up CI/CD on GitLab and automate your production build!.
- Create a gatsby site
- Change directory and start a development server
Stop your development server (
Ctrl + Con your command line in most cases)
.gitlab-ci.ymlwith the following content:
git push <you-remote-gitlab-repo>
- Check out your pipeline under the CI/CD option.