adding auto deployment
This commit is contained in:
parent
18131dc841
commit
8f20c5529b
22
.github/workflows/push_update.yml
vendored
22
.github/workflows/push_update.yml
vendored
@ -1,22 +0,0 @@
|
|||||||
name: event2.ourworld.tf
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branch: [ development ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
job_one:
|
|
||||||
name: Deploy
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: pushing latest change on event2.ourworld.tf
|
|
||||||
uses: appleboy/ssh-action@master
|
|
||||||
with:
|
|
||||||
host: event2.ourworld.tf
|
|
||||||
username: webuser
|
|
||||||
key: ${{ secrets.TF_SECRET }}
|
|
||||||
port: 34022
|
|
||||||
script: |
|
|
||||||
cd /home/webuser/websites/www2/www_ourworld_ictc
|
|
||||||
name=$(basename "$PWD")
|
|
||||||
tmux kill-session -t $name > /dev/null 2>&1
|
|
||||||
tmux new-session -d -s $name 'bash run.sh'
|
|
1
.github/workflows/tf_update.yml
vendored
1
.github/workflows/tf_update.yml
vendored
@ -19,3 +19,4 @@ jobs:
|
|||||||
cd /home/webuser/websites/www2/www_ourworld_ictc
|
cd /home/webuser/websites/www2/www_ourworld_ictc
|
||||||
git log -1
|
git log -1
|
||||||
git pull
|
git pull
|
||||||
|
bash start
|
||||||
|
Loading…
Reference in New Issue
Block a user