Compare commits

...

6 Commits

Author SHA1 Message Date
31b2bf8cf5 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
2025-02-26 13:37:55 -06:00
439f59c9c1 rename workflow and steps
All checks were successful
remote ssh command / Build (push) Successful in 6s
2025-02-26 13:32:25 -06:00
c2e0cf3e2d limit action to master pr's and move script to file
Some checks are pending
remote ssh command / Build (push) Waiting to run
2025-02-26 13:27:11 -06:00
183b1b689c change name and username for workflow
All checks were successful
remote ssh command / Build (push) Successful in 6s
2025-02-26 11:46:35 -06:00
b6cf09bb6a move workflow to correct directory
Some checks failed
remote ssh command / Build (push) Failing after 1m16s
2025-02-26 11:40:53 -06:00
73fc7e1997 add action workflow 2025-02-26 11:37:21 -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