tests/integration/build_ssh/context/Dockerfile
raw| 1 | # Base image |
| 2 | FROM alpine:latest |
| 3 | |
| 4 | # Install OpenSSH client |
| 5 | RUN apk add openssh |
| 6 | |
| 7 | # Test the SSH agents during the build |
| 8 | |
| 9 | RUN echo -n "default: " >> /result.log |
| 10 | RUN --mount=type=ssh ssh-add -L >> /result.log |
| 11 | |
| 12 | RUN echo -n "id1: " >> /result.log |
| 13 | RUN --mount=type=ssh,id=id1 ssh-add -L >> /result.log |
| 14 | |
| 15 | RUN echo -n "id2: " >> /result.log |
| 16 | RUN --mount=type=ssh,id=id2 ssh-add -L >> /result.log |