Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 775 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 775 Bytes

Anofuss Remote

Run command on host via ssh without depending on untrusted/unknown docker images or javascript libraries.

In other words: a no fuss action to run a remote command.

Requirements

Depends on openssh (present in ubuntu-latest).

Paste the private key (SSH_KEY) and known_hosts (KNOWN_HOST) into two specific Actions secrets.

Usage

Minimal configuration

runs-on: ubuntu-latest
steps:
- name: Restart daemon
  uses: vacare/anofuss-remote@v1
  with:
    host: example.com
    username: deploy
    key: ${{ secrets.SSH_KEY }}
    known_hosts: ${{ secrets.KNOWN_HOSTS }}
    command: /after-build.sh

See also

Combine with Anofuss Upload to upload file before and after commands.