Go to file
Marco Dalla Santa f705dfd43a Changed README
2020-12-20 18:57:10 +01:00
2020-12-18 17:22:26 +01:00
2020-12-18 17:22:26 +01:00
2020-12-18 17:22:26 +01:00
2020-12-18 17:22:26 +01:00
2020-12-18 17:22:26 +01:00
2020-12-18 19:53:41 +01:00
2020-12-20 18:57:10 +01:00
2020-12-18 17:22:26 +01:00
2020-12-18 17:22:26 +01:00

ssh-scp-deploy

Action type License Pipeline status

Why should I use this action?

Because this action provide an easy and higly customizable way to upload files via scp and execute a set of command via ssh before or/and after.
I use this in my personal project to deploy an application to a remote server or to upload a file via scp.

🏃 Supported runners

Supported runner

👤 Author

Marco Dalla Santa

⚙️ Usage

    - uses: mdallasanta/ssh-scp-deploy@{version}
      with:
        local: './'                                                  # Local file path - REQUIRED false - DEFAULT ./
        remote: '~/'                                                 # Remote file path - REQUIRED false - DEFAULT ~/
        host: ${{secrets.HOST}}                                      # Remote server address - REQUIRED true
        port: ${{secrets.PORT}}                                      # Remote server port - REQUIRED false - DEFAULT 22
        user: ${{secrets.USER}}                                      # Remote server user - REQUIRED true
        password: ${{secrets.PASSWORD}}                              # User password - REQUIRED at least one of "password" or "key" 
        key: ${{secrets.KEY}}                                        # Remote server private key - REQUIRED at least one of "password" or "key" 
        pre_upload: echo "This will be executed before the upload!"  # Command to run via ssh before scp upload - REQUIRED false
        post_upload: echo "This will be executed after the upload!"  # Command to run via ssh after scp upload - REQUIRED false
        ssh_options: -o StrictHostKeyChecking=no                     # A set of ssh_option separated by -o - REQUIRED false - DEFAULT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
        scp_options: -v                                              # Flags to use during scp - REQUIRED false - DEFAULT ''

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

## 🙏Thanks

Thanks to Raphaël Bussa that helped in testing.

📝 License

Copyright © 2020 Marco Dalla Santa

The source code, scripts and documentation in this project are released under the MIT License

Description
No description provided
Readme MIT 76 KiB
Languages
Shell 92.6%
Dockerfile 7.4%