diff --git a/drone-ci/README.md b/drone-ci/README.md index e72a79a..6e87568 100644 --- a/drone-ci/README.md +++ b/drone-ci/README.md @@ -25,4 +25,31 @@ volumes: - name: dockersock host: path: /var/run/docker.sock -... \ No newline at end of file +... + + +# SSH + +```yaml +--- +kind: pipeline +name: ssh deploy + +steps: +- name: ssh commands + image: appleboy/drone-ssh + settings: + host: + from_secret: host + username: + from_secret: username + password: + from_secret: password + port: 22 + script: + - docker run --rm sthopeless/randompwd + - docker image rm sthopeless/randompwd:latest + - mkdir ~/test + - rm -r ~/test + - echo "This is a test." +``` \ No newline at end of file