mirror of
https://github.com/webfactory/ssh-agent.git
synced 2024-11-27 03:13:17 +00:00
Document on how to integrate with docker/build-push-action
(#90)
This change adds some extra clarification to the documentation to show how to setup the `docker/build-push-action` step with this action. This is very helpful when using buildkit's `RUN --mount=type=ssh`. We found this to be a little confusing and the GH issues we found on the matter didn't help! Co-authored-by: Matthias Pigulla <mp@webfactory.de>
This commit is contained in:
parent
bbd5513ed5
commit
97348a2ec6
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -101,6 +101,19 @@ If you know that your favorite tool or platform of choice requires extra tweaks
|
||||||
|
|
||||||
If you are using this action on container-based workflows, make sure the container has the necessary SSH binaries or package(s) installed.
|
If you are using this action on container-based workflows, make sure the container has the necessary SSH binaries or package(s) installed.
|
||||||
|
|
||||||
|
### Using the `docker/build-push-action` Action
|
||||||
|
|
||||||
|
If you are using the `docker/build-push-action`, and would like to pass the SSH key, you can do so by adding the following config to pass the socket file through:
|
||||||
|
|
||||||
|
```
|
||||||
|
- name: Build and push
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
ssh: |
|
||||||
|
default=${{ env.SSH_AUTH_SOCK }}
|
||||||
|
```
|
||||||
|
|
||||||
### Cargo's (Rust) Private Dependencies on Windows
|
### Cargo's (Rust) Private Dependencies on Windows
|
||||||
|
|
||||||
If you are using private repositories in your dependencies like this:
|
If you are using private repositories in your dependencies like this:
|
||||||
|
|
Loading…
Reference in a new issue