adding workflow
This commit is contained in:
parent
39a631f5b7
commit
5e74ce2040
25
.github/workflows/tf_update_dev.yml
vendored
Normal file
25
.github/workflows/tf_update_dev.yml
vendored
Normal 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
25
.github/workflows/tf_update_prod.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user