Last active
August 6, 2018 02:23
-
-
Save lox/73b7b0614e9fbb5c1a94564df66c8d97 to your computer and use it in GitHub Desktop.
Pipeline for testing passing an ssh-agent socket to docker-compose
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
version: '3' | |
services: | |
ssh-test: | |
build: . | |
working_dir: /app | |
environment: | |
- SSH_AUTH_SOCK=/ssh-agent | |
volumes: | |
- $SSH_AUTH_SOCK:/ssh-agent |
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
FROM lgatica/openssh-client:latest |
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
steps: | |
- label: ":docker: Run" | |
command: sh -c "env | grep SSH_AUTH_SOCK && ssh-add -l" | |
plugins: | |
docker-compose#v2.5.1: | |
run: ssh-test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment