DevOps Classroomnotes 15/Oct/2022

Git aliases

  • Refer Here for documentation
  • Some of aliases used by me
alias.pushsub=push origin HEAD:master
alias.rspush=push --recurse-submodules=check
alias.history=log --graph --decorate --pretty=oneline --abbrev-commit
alias.pushmain=push origin HEAD:main

Git Submodule

  • When we want to create Git repository that contains another git repository, this is problematic => submodule helps Refer Here
  • Refer Here for the submodule demo added in the class
  • When we add a submodule (a git repo with in git repo) a file called .gitmodules will be updated Refer Here

Git Ops

  • In this approach, we have everything expressed as code
    • Merging the code from feature branches => pull request or branch merges
    • Infrastructure expressed as code (IaC)
    • Deployment Manifests (Kubernetes)
    • Configuration expressed as COde (CM)
  • GitOps can be acheived using multiple ways
    • Webhooks/hooks => we can call scripts which will perform the activities
    • GitLab CI/CD
    • GitHub Actions
  • We will learn the Git Ops (we will stick to only building the code)
  • Refer Here for jenkins declarative vs Github actions
  • Core Concepts of GitHub actions Refer Here
  • Events trigger workflow Refer Here. Our area of intrest are pull request and push
  • Runners:

  • Refer Here for github actions market place
  • Use Cache action to preserve the downloaded dependencies Refer Here
  • Refer the following

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner