Files
vbev.dev/.gitea/actions/configure-ssh-client/action.yaml
T
vbevdev 10d7773a13
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 28s
deploy-workflow: create docker compose file
2026-07-04 00:13:40 +03:00

17 lines
399 B
YAML

name: '⚙️ Configure SSH Client'
description: 'Installs sshpass and configures known_hosts'
inputs:
ssh_host:
description: 'Remote server IP'
required: true
runs:
using: 'composite'
steps:
- shell: bash
run: |
sudo apt-get update && sudo apt-get install -y sshpass
mkdir -p ~/.ssh
ssh-keyscan -p 22 "${{ inputs.ssh_host }}" >> ~/.ssh/known_hosts