User Tools

Site Tools


bloglike:2022-01

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
bloglike:2022-01 [2022/01/21 12:49] – created styblabloglike:2022-01 [2022/01/21 13:01] – add more links stybla
Line 3: Line 3:
 ===== AWS CodePipeline + GitHub + git submodule ===== ===== AWS CodePipeline + GitHub + git submodule =====
  
-There are couple of how tos AWS CodePipeline + GitHub and git submodule around - [[https://medium.com/@cristiano.ventura/working-with-git-submodules-in-codepipeline-83e843e5d0a|one]], [[https://stackoverflow.com/questions/42712542/how-to-auto-deploying-git-repositories-with-submodules-on-aws/53077616#53077616|two]](which discusses handful of solutions). And here is the one which works for me in given setup:+There are couple of how tos AWS CodePipeline + GitHub and git submodule around - [[https://medium.com/@cristiano.ventura/working-with-git-submodules-in-codepipeline-83e843e5d0a|one]], [[https://stackoverflow.com/questions/42712542/how-to-auto-deploying-git-repositories-with-submodules-on-aws/53077616#53077616|two]](which discusses handful of solutions), [[https://adrianhesketh.com/2018/05/02/go-private-repositories-and-aws-codebuild/|three]], [[https://tipsfordev.com/how-to-auto-deploying-git-repositories-with-submodules-on-aws|four]]. And here is the one which works for me in given setup:
  
    - private repositories hosted at GitHub    - private repositories hosted at GitHub
Line 23: Line 23:
 </file> </file>
  
-**NOTE** that:+**NOTES**:
  
-  * URL in ''.gitmodules'' must be ''https://github.com/user-org/repo''. Relative path and git+SSH didn't work for me. It looks like I will have to apply yet another hack since GitHub Actions require hack-around as well. +   URL in ''.gitmodules'' must be ''https://github.com/user-org/repo''. Relative path and git+SSH didn't work for me. **Actually, this was rather important finding for me** and it looks like it's not mentioned anywhere. It looks like I will have to apply yet another hack since GitHub Actions require hack-around as well.  
-  Don't forget to allow AWS CodeBuild service role to use of AWS CodeStar connection, namely ''codestar-connections:UseConnection''. +   - Don't forget to allow AWS CodeBuild service role to use of AWS CodeStar connection, namely ''codestar-connections:UseConnection''. **Usually forgotten**. 
-  * What about SSH? What about it? Sadly, that's one way to deal with git submodules in GitHub Actions.+   What about SSH? What about it? Sadly, that's one way to deal with git submodules in GitHub Actions.
bloglike/2022-01.txt · Last modified: 2022/01/30 15:23 by stybla