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
All checks were successful
remote ssh command / Build (push) Successful in 4s
Reviewed-on: #3
This commit is contained in:
commit
31b2bf8cf5
15
.gitea/workflows/action.yaml
Normal file
15
.gitea/workflows/action.yaml
Normal 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
17
action.yaml
Normal 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
|
||||||
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