Skip to content

remote ssh command

remote ssh command #11

Workflow file for this run

name: remote ssh command
on:
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
environment: production
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd /opt/stacks/rps-elite/
docker compose pull
docker image prune -f
docker compose up --force-recreate --build -d