Skip to content

i3h/deploy-with-scp

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action - Deploy with SCP

This GitHub Action wraps scp command with ssh jump option.

Usage

- name: Deploy with SCP
  id: deploy_with_scp
  uses: i3h/deploy-with-scp@v1
  with:
    src: /path/to/source
    dest: /path/to/destination
    username: ${{ secrets.SERVER_USER }}
    server-ip: ${{ secrets.SERVER_IP }}
    ssh-key: ${{ secrets.SERVER_SSH_KEY }}
    proxy-username: ${{ secrets.PROXY_SERVER_USER }}
    proxy-server-ip: ${{ secrets.PROXY_SERVER_IP }}
    proxy-ssh-key: ${{ secrets.PROXY_SERVER_SSH_KEY }}

// Parameters with prefix 'proxy' are optional.