add auto deployment support

This commit is contained in:
Peter Nashaat 2022-10-12 14:54:40 +00:00
parent 87566ba0d6
commit f8413499ff

View File

@ -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