name: staging
on:
push:
branches:
- 'gh-pages'
jobs:
docker-compose-down:
runs-on: ubuntu-latest
steps:
- name: compose-down
uses: appleboy/ssh-action@master
with:
USERNAME: admin
HOST: vpn.presto.com
KEY: ${{ secrets.MY_KEY }}
port: 22
script: |
cd /repo/mydashboard
ls -la
docker-compose down
This is the output for the Github action:
======CMD======
cd /repo/dashboard
ls -la
docker-compose down
======END======
2021/08/03 20:08:52 dial tcp 3.18.125.12:22: i/o timeout
Ran the job and got an i/o timeout? I fixed some issues with the server and I was able to ssh manually and run docker-compose up and docker-compose down. I docker-compose up to be able to test the job and it’s still giving me an error. It says I/O TIMEOUT.