add auto deployment support
This commit is contained in:
parent
87566ba0d6
commit
f8413499ff
12
.github/workflows/tf_update.yml
vendored
12
.github/workflows/tf_update.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: freeflow.life
|
||||
name: nomads.ourworld.tf
|
||||
on:
|
||||
push:
|
||||
branch: [ development ]
|
||||
@ -8,15 +8,15 @@ jobs:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: pushing latest change on www2.freeflow.life
|
||||
- name: pushing latest change on nomads.ourworld.tf
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: www2.freeflow.life
|
||||
username: root
|
||||
host: nomads.ourworld.tf
|
||||
username: webuser
|
||||
key: ${{ secrets.TF_SECRET }}
|
||||
port: 22
|
||||
port: 34022
|
||||
script: |
|
||||
cd /opt/www_freeflow_life
|
||||
cd /home/webuser/websites/www2/www_ournomads/
|
||||
git log -1
|
||||
git pull
|
||||
bash build.sh
|
||||
|
Reference in New Issue
Block a user