From 768e052ffbc4423a76b182c2e8e43b0e03c211ab Mon Sep 17 00:00:00 2001 From: PeterNashaat Date: Mon, 19 Dec 2022 12:06:13 +0000 Subject: [PATCH] adding auto deployment feature --- .github/workflows/tf_update.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/tf_update.yml diff --git a/.github/workflows/tf_update.yml b/.github/workflows/tf_update.yml new file mode 100644 index 0000000..09c7768 --- /dev/null +++ b/.github/workflows/tf_update.yml @@ -0,0 +1,21 @@ +name: ourphone.ourworld.tf +on: + push: + branch: [main] + +jobs: + job_one: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: pushing latest change on ourphone.ourworld.tf + uses: appleboy/ssh-action@master + with: + host: ourphone.ourworld.tf + username: webuser + key: ${{ secrets.TF_SECRET }} + port: 34022 + script: | + cd /home/webuser/websites/www_ourphone/ + git log -1 + git pull