All Projects → appleboy → Drone Ssh

appleboy / Drone Ssh

Licence: mit
Drone plugin for executing remote ssh commands

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Drone Ssh

Cli
✨ A powerful CLI for the Create Go App project. Create a new production-ready project with backend, frontend and deploy automation by running one CLI command!
Stars: ✭ 292 (+88.39%)
Mutual labels:  cli, docker-image, docker-container
python3-docker-devenv
Docker Start Guide with Python Development Environment
Stars: ✭ 13 (-91.61%)
Mutual labels:  ssh, docker-container, docker-image
Docker Maven Plugin
A maven plugin to manage docker containers and images for integration tests.
Stars: ✭ 80 (-48.39%)
Mutual labels:  docker-image, docker-container
Docker Superset
Repository for Docker Image of Apache-Superset. [Docker Image: https://hub.docker.com/r/abhioncbr/docker-superset]
Stars: ✭ 86 (-44.52%)
Mutual labels:  docker-image, docker-container
Dockernotes
Docker入门精华版
Stars: ✭ 107 (-30.97%)
Mutual labels:  docker-image, docker-container
Directus Docker
Directus 6 Docker — Legacy Container [EOL]
Stars: ✭ 68 (-56.13%)
Mutual labels:  docker-image, docker-container
Docker Headless Vnc Container
Collection of Docker images with headless VNC environments
Stars: ✭ 1,176 (+658.71%)
Mutual labels:  docker-image, docker-container
Docker Compose Lamp
A basic LAMP stack environment built using Docker Compose.
Stars: ✭ 1,284 (+728.39%)
Mutual labels:  docker-image, docker-container
Docker registry cli
Docker Registry CLI - Provides search functionality for Docker Registry (UI and CLI)
Stars: ✭ 48 (-69.03%)
Mutual labels:  cli, docker-image
Quicssh
SSH over QUIC
Stars: ✭ 116 (-25.16%)
Mutual labels:  cli, ssh
Docker Atom Editor
Run the Atom editor within a Docker container
Stars: ✭ 110 (-29.03%)
Mutual labels:  docker-image, docker-container
Docker Workshop
Introduction to Docker tutorial
Stars: ✭ 124 (-20%)
Mutual labels:  docker-image, docker-container
Drone Telegram
Drone plugin for sending Telegram notifications
Stars: ✭ 67 (-56.77%)
Mutual labels:  drone, docker-image
Poco
Poco will help you to organise and manage Docker, Docker-Compose, Kubernetes, Openshift projects of any complexity using simple YAML config files to shorten the route from finding your project to initialising it in your local environment.
Stars: ✭ 66 (-57.42%)
Mutual labels:  docker-image, docker-container
Cabot Docker
Docker Images to build full cabot environment
Stars: ✭ 75 (-51.61%)
Mutual labels:  docker-image, docker-container
Docker Bind
Bind caching DNS server on Debian with wild-card domain support
Stars: ✭ 50 (-67.74%)
Mutual labels:  docker-image, docker-container
Docker Gocd Server
Docker server image for GoCD
Stars: ✭ 86 (-44.52%)
Mutual labels:  docker-image, docker-container
Docker X11 Bridge
Simple Xpra X11 bridge to enable GUI with any docker image
Stars: ✭ 143 (-7.74%)
Mutual labels:  ssh, docker-image
Distro Test Containers
Distribution specific containers for Ansible integration testing.
Stars: ✭ 20 (-87.1%)
Mutual labels:  docker-image, docker-container
Magento2 Varnish Redis Ssl Docker Compose
Deploy Magento2 with Varnish Cache and Redis with SSL termination using Docker-compose tool
Stars: ✭ 37 (-76.13%)
Mutual labels:  docker-image, docker-container

drone-ssh

sshlog

GitHub tag GoDoc Build Status codecov Go Report Card Docker Pulls micro badger

Drone plugin to execute commands on a remote host through SSH. For the usage information and a listing of the available options please take a look at the docs.

Note: Please update your image config path to appleboy/drone-ssh for drone. plugins/ssh is no longer maintained.

demo

Breaking changes

v1.5.0: change command timeout flag to Duration. See the following setting:

pipeline:
  scp:
    image: appleboy/drone-scp
    settings:
      host:
        - example1.com
        - example2.com
      username: ubuntu
      password:
        from_secret: ssh_password
      port: 22
-     command_timeout: 120
+     command_timeout: 2m
      script:
        - echo "Hello World"

Build or Download a binary

The pre-compiled binaries can be downloaded from release page. Support the following OS type.

  • Windows amd64/386
  • Linux arm/amd64/386
  • Darwin amd64/386

With Go installed

go get -u -v github.com/appleboy/drone-ssh

or build the binary with the following command:

export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on

go test -cover ./...

go build -v -a -tags netgo -o release/linux/amd64/drone-ssh .

Docker

Build the docker image with the following commands:

make docker

Usage

Execute from the working directory:

docker run --rm \
  -e PLUGIN_HOST=foo.com \
  -e PLUGIN_USERNAME=root \
  -e PLUGIN_KEY="$(cat ${HOME}/.ssh/id_rsa)" \
  -e PLUGIN_SCRIPT=whoami \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  appleboy/drone-ssh

Mount key from file path

Please make sure that enable the trusted mode in project setting for drone 0.8 version.

trusted mode

Mount private key in volumes setting of .drone.yml config

pipeline:
  ssh:
    image: appleboy/drone-ssh
    host: xxxxx.com
    username: deploy
+   volumes:
+     - /root/drone_rsa:/root/ssh/drone_rsa
    key_path: /root/ssh/drone_rsa
    script:
      - echo "test ssh"

See the detail of issue comment.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].