-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple deploy keys + docker build, ssh config missing #152
Comments
I think I've figured this out. It seems like, in the context of the workflow, the action is placing the The solution was changing the
Then in the dockerfile, the git and ssh configs are in that I'm not sure how to determine whether this is due to the container I'm using for my workflow, or if it's just noted incorrectly in the docs, but I hope this is able to help anyone else that runs into this. Leaving open in case it ends up being a pointer to a fix, I'll let the maintainer(s) handle closing as needed. Thanks for the great action! |
Sorry, I was AFK for the U.S. holiday last week. I'll take a look at #145 this week, thanks! |
OK added a comment over there. Tl;dr, that PR does not cover this issue. |
@danseely seems like the root of your problem is located in this line. As stated in the comment above the line, the location of @mpdude would it be possible to expose the value of |
@j-riebe yep, agreed, seems likely. I thought it was odd that however that the As far as adding output to the action, that would have helped me tremendously. Figuring out that the location of the |
Yes, if that helps, we can set it as an output. Looking forward to PRs! It would be best if the PR includes documentation updates to mention the output and also explain (in the context of Docker builds?) how it is supposed to be used. |
Take a look at this: #164 |
I'm in the same boat raised in Issue 78, and later defined in the
Using the docker/build-push-action Action together with multiple Deploy Keys
section of the readme. I.e., I need multiple ssh keys to be used as deploy keys for multiple Github repos, in the context ofdocker build
.The only difference between that and my use-case is that I'm not using the
build-push-action
, but manually building & pushing. I don't think that difference is related to the problem I'm seeing, but I could be wrong. I'm passing the ssh agent socket into the docker build manually like so:To verify, I have all 4 separate ssh public keys installed in 4 of our private repos as deploy keys, and the corresponding private keys installed in our org as CI secrets. We're running on our self-hosted runner, and using a base image we've made with some of the tools we need pre-installed.
I have my ssh setup in the action in the way defined in the README:
And I added the relevant lines to my dockerfile:
However, I get this error on the
sed
command:When I add this to the workflow after the above blocks:
... it only shows
known_hosts
being present in both directories. And when I do the samels
in the dockerfile, same thing.I feel like I'm probably looking right at the problem, but I can't see it.
The text was updated successfully, but these errors were encountered: