Skip to content

arthurvanl/action-exec-ssh

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

85beaeb · Jun 15, 2022

History

14 Commits
Jun 15, 2022
May 10, 2022
May 11, 2022
Jun 15, 2022
Jun 15, 2022
May 10, 2022
May 10, 2022

Repository files navigation

action-exec-ssh

With this action you can simply execute ssh commands to your vps.

This gives us the opportunity to deploy the application right away. You should create 2 secrets for host & password. You can create up to 4 commands. But you can also do this: ls -h && htop. This basically executes 2 commands.

Workflow example

name: Execute SSH Commands

on: [push, pull_request, workflow_dispatch]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Run SSH Commands
      id: ssh
      uses: arthurvanl/action-exec-ssh@v1
      with:
        host: ${{ secrets.HOST }}
        username: root
        password: ${{ secrets.PASSWORD }}
        ssh_1: '<SSH_COMMAND>'
        ssh_2: '<SSH_COMMAND>'
        ssh_3: '<SSH_COMMAND>'
        ssh_4: '<SSH_COMMAND>'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published