overhaul gitea workflows
- move action.yaml from root to workflows directory. - rename to push_prod. - add push_staging and push_dev.
This commit is contained in:
parent
179fc596cd
commit
ce0d8cc424
17
.gitea/workflows/push_dev.yaml
Normal file
17
.gitea/workflows/push_dev.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
name: Deploy datapack to prod
|
||||
on:
|
||||
pull_request:
|
||||
branches: [dev, dev-player-messages, dev-database]
|
||||
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,7 +1,7 @@
|
||||
name: Deploy datapack to prod
|
||||
on:
|
||||
pull_request:
|
||||
branches: master
|
||||
branches: [master]
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
@ -1,15 +1,17 @@
|
||||
name: remote ssh command
|
||||
on: [push]
|
||||
name: Deploy datapack to prod
|
||||
on:
|
||||
pull_request:
|
||||
branches: [staging]
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: update server datapack folder
|
||||
- name: Updating prod servers...
|
||||
uses: appleboy/ssh-action@v1.2.1
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
username: sadmin
|
||||
username: linuxserver.io
|
||||
password: ${{ secrets.PASSWORD }}
|
||||
port: ${{ secrets.PORT }}
|
||||
script: whoami
|
||||
script_path: scripts/update_servers.sh
|
||||
Loading…
Reference in New Issue
Block a user