adding workflow

This commit is contained in:
Peter Nashaat 2023-04-03 13:15:09 +00:00
parent 39a631f5b7
commit 5e74ce2040
2 changed files with 50 additions and 0 deletions

25
.github/workflows/tf_update_dev.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Jungleparadise Staging
on:
push:
branches:
- development
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www2.jungleparadise.tf
uses: appleboy/ssh-action@master
with:
host: www2.jungleparadise.tf
username: ${{ secrets.TF_USER }}
key: ${{ secrets.TF_SECRET }}
port: ${{ secrets.TF_PORT }}
script: |
cd websites/www2/www_jungle_paradise/
git log -1
git restore .
git pull
bash build.sh

25
.github/workflows/tf_update_prod.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Jungleparadise Production
on:
push:
branches:
- main
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www.jungleparadise.tf
uses: appleboy/ssh-action@master
with:
host: www.jungleparadise.tf
username: ${{ secrets.TF_USER }}
key: ${{ secrets.TF_SECRET }}
port: ${{ secrets.TF_PORT }}
script: |
cd websites/www_jungle_paradise/
git log -1
git restore .
git pull
bash build.sh