Skip to content

Commit

Permalink
fix: update ssh mount type reference in ssh build attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Moulard <tom@moulard.org>
  • Loading branch information
tomMoulard authored and jhrotko committed May 8, 2024
1 parent c9480da commit 9fe21fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ build:
- myproject=~/.ssh/myproject.pem
```
The image builder can then rely on this to mount the SSH key during build.
For illustration, [BuildKit extended syntax](https://github.com/compose-spec/compose-spec/pull/234/%5Bmoby/buildkit@master/frontend/dockerfile/docs/syntax.md#run---mounttypessh%5D(https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md#run---mounttypessh)) can be used to mount the SSH key set by ID and access a secured resource:
For illustration, [BuildKit extended syntax](https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/reference.md#run---mounttypessh) can be used to mount the SSH key set by ID and access a secured resource:

`RUN --mount=type=ssh,id=myproject git clone ...`

Expand Down

0 comments on commit 9fe21fc

Please sign in to comment.