8. Bonus 2
In this section you will modify your CI/CD Pipeline to work more smart. In real life, deployment pipelines don't run on each commit, i.e. development branch commits don't go to production.
Build && Deploy Steps only in master branch
- Add rule to Build and Deploy steps that if branch is master they get built.
Modify
.gitlab-ci.yml
in a branch to see if it works.
This will make Tests run on development branches which makes easier to test.