Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision |
bloglike:2022-01 [2022/01/21 12:49] – created stybla | bloglike:2022-01 [2022/01/22 14:35] – fake signature ... as usual stybla |
---|
===== 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 |
</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. |
| |
| --- //[[stybla@turnovfree.net|Zdenek Styblik]] 2022/01/21 19:01// |