-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rui Yang <[email protected]>
- Loading branch information
Rui Yang
committed
Jun 21, 2021
1 parent
35fd63a
commit b5c639e
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# syntax = docker/dockerfile:1.0-experimental | ||
FROM alpine | ||
|
||
# shows secret from custom secret location: | ||
RUN --mount=type=secret,id=my_ssh_key cat ./id_rsa_test | ||
RUN apk add --no-cache openssh-client | ||
|
||
# shows private key available in ssh agent | ||
RUN --mount=type=ssh,id=my_ssh_key ssh-add -l | grep "SHA256:DFxHFuit9VQtxkBrZWzJhf5OTL5/RwzCJuZjTAPC1DI" |