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: on:
push: push:
branch: [ development ] branch: [ development ]
@ -8,15 +8,15 @@ jobs:
name: Deploy name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: pushing latest change on www2.freeflow.life - name: pushing latest change on nomads.ourworld.tf
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: www2.freeflow.life host: nomads.ourworld.tf
username: root username: webuser
key: ${{ secrets.TF_SECRET }} key: ${{ secrets.TF_SECRET }}
port: 22 port: 34022
script: | script: |
cd /opt/www_freeflow_life cd /home/webuser/websites/www2/www_ournomads/
git log -1 git log -1
git pull git pull
bash build.sh bash build.sh