concourse-ssh-resource

module
v2.2.5+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2017 License: MIT

README

Concourse SSH Resource

CircleCI codecov goreportcard Docker Repository on Quay GitHub release license

SSH resource for Concourse CI

Source Configuration

  • host: host name of remote machine
  • port: port of SSH server on remote machine, 22 by default
  • user: user for executing shell script on remote machine
  • password: plain password for user on remote machine
  • private_key: private SSH key for user on remote machine
Caveats

According to appleboy/easyssh-proxy, if password and private_key both exists, password would be used first, then private_key.

Behavior

This is a put-only resource, check and in does nothing.

out: Run commands via SSH

Execute shell script on remote machine via SSH.

Parameters
  • interpreter: string, path to interpreter on remote machine, e.g. /usr/bin/python3, /bin/sh by default
  • script: string, shell script to run on remote machine

Examples

---
resource_types:
- name: ssh
  type: docker-image
  source:
    repository: quay.io/henry40408/concourse-ssh-resource

resources:
- name: staging-server
  type: ssh
  source:
    host: 127.0.0.1
    user: root
    password: ((ssh_password))

jobs:
- name: echo
  plan:
  - put: staging-server
    params:
      interpreter: /usr/bin/env python3
      script: |
        print("Hello, world!")

License

MIT

Directories

Path Synopsis
cmd
check command
in command
out command
internal
ssh
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL