guitarrapc / git-shallow-clone-orb

circleci orb to execute git shallow clone for faster checkout.
https://circleci.com/orbs/registry/orb/guitarrapc/git-shallow-clone
MIT License
21 stars 11 forks source link

feat: add auto restore base64 encoded id_rsa to .ssh/id_rsa #30

Closed guitarrapc closed 2 years ago

guitarrapc commented 2 years ago

add functionality describe at https://github.com/guitarrapc/git-shallow-clone-orb/issues/15#issuecomment-959136791.

A. Users who want restore $CHECKOUT_KEY to .ssh/id_rsa, you should set base64 id_rsa on environment variables, then git-shallow-clone-orb/checkout will decode it to .ssh/id_rsa". Doesn't work with submodules #15 (comment) (I need prepare this)

Need 2 function, "detect env var BASE64_CHECKOUT_KEY is exists" and "decode base64 to .ssh/id_rsa".

guitarrapc commented 2 years ago

no need. use https://github.com/guitarrapc/git-shallow-clone-orb/issues/15#issuecomment-995025137