Triggering CI¶
Let's now finally trigger a pipeline by making a simple change to our Ansible code base.
The Change¶
All we're going to do is update the main.yaml
file.
- Using the
http-cats/configuration/ansible
repository - Edit the
main.yaml
file and simply addTesting
to the bottom - Save the file and
git commit ...
it to the repository - Use
git push
to push your changes to the remote in GitLab
Now navigate to the CI/CD pipelines in GitLab and you'll see a pipeline has executed.
Exercises¶
- Undo the change made to the
main.yaml
file, commit and push the changes, and check that another pipeline runes
Next¶
We're now going to discuss what we've done, and why.