DevOps Classroom notes 29/Jul/2026

Git submodule:

  • add another repo as submodule
# clone repo 
git submodule add https://github.com/direct-devops/ansible-roles.git

git add .
git commit -m "added submodules"
git push
# module .gitmodules
[submodule "spring-petclinic"]
	path = spring-petclinic
	url = https://github.com/direct-devops/spring-petclinic
[submodule "ansible-roles"]
	path = ansible-roles
	url = https://github.com/direct-devops/ansible-roles.git

Refer here for checkout submodule repo

name: test submodule
on:
 push:
  branches: 'main'

jobs:
  demo:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v7
        with:
          submodules: 'recursive'
          # token: ${{ secrets.GITHUB_TOKEN }}
          

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube