试图使用AWS扩容来部署一个多回购树状 wiki,它包含公共和私有的github存储库。
扩容可以与单一回购相关联,但似乎没有一个内置的方式来吸引更多的私人存储库。
发布于 2022-05-21 16:43:44
ssh-keygen -f deploy_key -N“
- add this as a hosting [environment variable](https://docs.aws.amazon.com/amplify/latest/userguide/environment-variables.html#amplify-console-environment-variables) (eg. DEPLOY\_KEY)
amplify.yml
文件以使用部署键ssh-agent
添加部署键$DEPLOY_KEY
打印到stdout
- disabling `StrictHostKeyChecking`
- NOTE: amplify does not have a `$HOME/.ssh` folder by default so you'll need to create one as part of the deployment process
- relevant excerpt below
- full build file [here](https://github.com/kevinslin/kevin-public-garden/blob/main/amplify.yml)
现在,您应该能够使用git克隆私人回购。
有关更详细的写作以及备选方案和难点,请参见这里。
发布于 2022-11-06 14:45:58
对于GitLab存储库:
https://stackoverflow.com/questions/72331503
复制相似问题