Kamal in bitbucket pipelines: Passing ssh key to Dockerfile to install gems from private repos #895
Unanswered
mariedevops
asked this question in
Q&A
Replies: 1 comment
-
I've done such thing some years ago, I think I remember that using the This is why I ended up with this solution :
So my command Note how the key is removed in the same command it used in, to not leave it anywhere after being used. (Docker multi-stage building could also help about that) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone! We really need some help with integrating a manual step "kamal deploy" in a bitbucket pipeline. Among other things our dockerfile needs to install something from a private repo which would give us a very well-known ssh error.
While I found a way to access that repo when running kamal deploy from the local machine using builders: ssh: default=$SSH_AUTH_SOCK in config/deploy.yml and adding RUN --mount=type=ssh bundle install to Dockerfile, this does not seem to be possible in BB. Of course BB has env vars and ssh key but Dockerfile won't pick them up. Also, BB has no buildx/multiarch which makes things more complicated. I would appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions