lBeJIuk / scp_action

Simple wrapper for SCP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scp_action

Simple wrapper for SCP.

Example of use:

name: workflow_name
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: 'Custom name'
      uses: lbejiuk/scp_action@v1
      with:
        public_key: ${{secrets.TEST_API_KEY}}
        ssh_port: 10000
        ssh_username: 'root'
        ssh_host: 'zrvs.de'
        source: 'key'
        target: '/root/'

The script will create a "./key" file, which can be used in the following steps, if "keep_key" variable was set. The action takes on the following parameters:

  • public_key *required
  • ssh_port default: '22'
  • ssh_username *required
  • ssh_host *required
  • source *required
  • target *required
  • keep_key default: [not_set]

About

Simple wrapper for SCP

License:MIT License


Languages

Language:Shell 78.9%Language:Dockerfile 21.1%