Git for Devops

Use Case 1) Infrastructure as Code

As a DevOps engineer you write code (configuration files and scripts) to create and provision infrastructure

▪ Kubernetes config files.

▪ Terraform and Ansible config files.

▪ Bash and Python scripts.

Just like software code, files should be:

▪ Tracked - history of changes (these files should also "live" in a remote repository and be tracked and versioned by Git)

▪ Securely stored in one place.

▪ Shareable to collaborate as team.

Use Case 2) Automation Scripts

As a DevOps engineer you write automation scripts e.g. with Python or Bash to automate different tasks

Use Case 3) CI/CD Pipeline and Build Automation

▪ CI means: On each merge, checkout code from repository, test and build application

▪ For that, you need integration for the build automation tool with application git repository

▪ You need to setup integration with build automation tool and git repository

▪ You need to know git commands for example for:

getting commit hash of specific commit

check if changes happen in frontend or backend code

Last updated