Skip to content
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

Feature request: provide way to add --ssh argument to docker build command #39

Closed
ghost opened this issue May 2, 2020 · 10 comments · Fixed by #123
Closed

Feature request: provide way to add --ssh argument to docker build command #39

ghost opened this issue May 2, 2020 · 10 comments · Fixed by #123
Labels
kind/enhancement New feature or request
Milestone

Comments

@ghost
Copy link

ghost commented May 2, 2020

There does not appear to be a way to turn on the newish --ssh forwarding capability of docker build with this action. This is needed to access private github repos from inside the Dockerfile (etc). If this is in some way available, it is not documented.

Some way to place the ssh key(s) (or inject them from a repo secret) and get them to work with RUN --mount=type=ssh would be great. If this ability is already present, then documentation would be greate!

@ghost
Copy link
Author

ghost commented May 2, 2020

I have tried using "build_args" for this, but with no success.

@ruimarinho
Copy link

I don't think this is supported for the time being. Have you found a workaround @adam-olema ?

@ghost
Copy link
Author

ghost commented Jun 1, 2020

No workaround for now. I am just running docker build directly in my workflow instead of using the action. This allows me to pass whatever environment and set any args I need.

@ghost
Copy link
Author

ghost commented Jun 1, 2020

While a combined action would make my workflow a lot simpler, in the end I need a level of control this action does not offer.

@whiteyhat
Copy link

I can not believe this is not implemented yet...

@crazy-max
Copy link
Member

Will be available through #71 / #92

@whiteyhat
Copy link

@crazy-max can't wait! Any estimates for this?

@adam-olema can you share a code snippet example?

@crazy-max crazy-max added this to the v2 milestone Sep 2, 2020
@crazy-max crazy-max added the kind/enhancement New feature or request label Sep 9, 2020
@crazy-max
Copy link
Member

@whiteyhat

can't wait! Any estimates for this?

See #123

@vnikolaienko-neattech
Copy link

Sorry, maybe I missleading. How to use that -ssh flag. It's should be file?

@andyfcx
Copy link

andyfcx commented Apr 27, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants