adding auto deployment feature

This commit is contained in:
Peter Nashaat 2022-11-02 10:19:44 +00:00
parent b8850be903
commit a3e6123eaf

22
.github/workflows/tf_update.yml vendored Normal file
View File

@ -0,0 +1,22 @@
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
git log -1
git pull
systemctl --user restart event2-ourworldtf.service