Giter VIP home page Giter VIP logo

concourse-ssh-resource's Introduction

SSH Resource

Fork form https://github.com/edtan/concourse-ssh-resource

A resource for running a command through SSH primarily for simple deploys based on a small alpine base image.

Add support for hostname and port variable.

Installing

Add the following to the resource_types section of a pipeline config:

---
resource_types:
- name: concourse-ssh-resource
  type: docker-image
  source:
    repository: edtan1/concourse-ssh-resource

Source configuration

---
resources:
- name: my-server-ssh
  type: concourse-ssh-resource
  source:
    username: my-username
    private_key: ((ssh-private-key))
  • username: Required. Username.

  • private_key: Required. The private key to use - use a credentials manager for this!

check: no-op

This resource currently does nothing for check.

in: no-op

This resource currently does nothing for in.

out: Run a command through ssh

Runs the command in the provided in params. The following command will be run:

ssh -o StrictHostKeyChecking=no -o ConnectTimeout=5 -p $port -i $private_key_file $username@$hostname $command

Configuration:

plan:
- put: my-server-ssh
  params:
    hostname: my-server-hostname
    command: ./deploy.sh

Parameters

  • hostname: Required. Server to connect to.
  • port: Optional. Default 22. Port.
  • command: Required. The command to run on the server.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.