Merge pull request 'Create workflow that can be configured to update production servers' (#3) from dev into master
All checks were successful
remote ssh command / Build (push) Successful in 4s

Reviewed-on: #3
This commit is contained in:
ehrumsey 2025-02-26 13:37:55 -06:00
commit 31b2bf8cf5
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,15 @@
name: remote ssh command
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: update server datapack folder
uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ secrets.HOST }}
username: sadmin
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: whoami

17
action.yaml Normal file
View File

@ -0,0 +1,17 @@
name: Deploy datapack to prod
on:
pull_request:
branches: master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Updating prod servers...
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

View File

@ -0,0 +1 @@
whoami