ssh-action/.github/workflows/ci.yml

37 lines
937 B
YAML
Raw Normal View History

2019-09-29 02:45:29 +00:00
name: remote ssh command
2019-09-29 02:43:33 +00:00
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
2019-09-29 02:46:23 +00:00
uses: appleboy/ssh-action@master
2019-09-29 02:43:33 +00:00
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: whoami
- name: executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: whoami
2019-09-29 02:53:17 +00:00
- name: multiple command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
2019-09-29 02:55:53 +00:00
script: |
2019-09-29 02:53:17 +00:00
whoami
ls -al