Create workflow that can be configured to update production servers #3

Merged
ehrumsey merged 5 commits from dev into master 2025-02-26 13:37:56 -06:00
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