'git operations using chef recipe
I would like to perform the below steps using chef recipe;
git add file1.txt
git commit -m "file1.txt"
git push origin master
I have tried using the below script, but I'm stuck with the next steps, I couldn't find enough details in chef.io details regarding git operations. How do we use git add and git push in the chef recipe. Appreciated any help here
git "/home/file1.txt" do
repository "git://gitlab.com/kimkev/prism_systems.git"
revision "master"
action :sync
end
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
