cross-the-world / scp-pipeline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SCP Pipeline

Github actions

This action allows copying per scp

  • scp if defined
  • local -> remote if defined

Inputs

see the action.yml file for more detail imformation.

host

Required ssh remote host.

port

NOT Required ssh remote port. Default 22

user

Required ssh remote user.

pass

NOT Required ssh remote pass.

key

NOT Required ssh remote key as string.

connect_timeout

NOT Required connection timeout to remote host. Default 30s

local

NOT Required execute pre-commands before scp.

remote

NOT Required execute pre-commands after scp.

scp

NOT Required scp from local to remote.

Syntax local_path => remote_path e.g. /opt/test/* => /home/github/test

Usages

see the deploy.yml file for more detail imformation.

scp pipeline

- name: scp pipeline
  uses: cross-the-world/scp-pipeline@master
  with:
    host: ${{ secrets.DC_HOST }}
    user: ${{ secrets.DC_USER }}
    pass: ${{ secrets.DC_PASS }}
    port: ${{ secrets.DC_PORT }}
    connect_timeout: 10s
    local: './test/*'
    remote: /home/github/test/
    scp: |
      ./test/test*.csv => "/home/github/test/test2/"

local remote scp

- name: local remote scp
  uses: cross-the-world/scp-pipeline@master
  with:
    host: ${{ secrets.DC_HOST }}
    user: ${{ secrets.DC_USER }}
    pass: ${{ secrets.DC_PASS }}
    local: "./test/test1*"
    remote: /home/github/test/test1/

About

License:MIT License


Languages

Language:Python 79.4%Language:Dockerfile 16.9%Language:Shell 3.7%