Create workflow that can be configured to update production servers #3
17
action.yaml
Normal file
17
action.yaml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: remote ssh command
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: executing remote ssh commands using password
|
||||||
|
uses: appleboy/ssh-action@v1.2.1
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: linuxserver.io
|
||||||
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
script_path: scripts/update_servers.sh
|
||||||
1
scripts/update_servers.sh
Normal file
1
scripts/update_servers.sh
Normal file
@ -0,0 +1 @@
|
|||||||
|
whoami
|
||||||
Loading…
Reference in New Issue
Block a user