adding www3 auto deploy
This commit is contained in:
parent
1e0eb14277
commit
28afa469bb
5
.github/workflows/tf_update_dev.yml
vendored
5
.github/workflows/tf_update_dev.yml
vendored
@ -20,6 +20,7 @@ jobs:
|
||||
script: |
|
||||
cd websites/www2/www_jungle_paradise/
|
||||
git log -1
|
||||
git restore .
|
||||
git pull
|
||||
git fetch
|
||||
git reset --hard origin/development
|
||||
sed -i "s/https:\/\/jungleparadise.tf/https:\/\/www2.jungleparadise.tf/g" config.toml
|
||||
bash build.sh
|
||||
|
26
.github/workflows/tf_update_dev_new.yml
vendored
Normal file
26
.github/workflows/tf_update_dev_new.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: Jungleparadise Staging
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- development_new
|
||||
|
||||
|
||||
jobs:
|
||||
job_one:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: pushing latest change on www3.jungleparadise.tf
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: www3.jungleparadise.tf
|
||||
username: ${{ secrets.TF_USER }}
|
||||
key: ${{ secrets.TF_SECRET }}
|
||||
port: ${{ secrets.TF_PORT }}
|
||||
script: |
|
||||
cd websites/www3/www_jungle_paradise/
|
||||
git log -1
|
||||
git fetch
|
||||
git reset --hard origin/development_new
|
||||
sed -i "s/https:\/\/www2.jungleparadise.tf/https:\/\/www3.jungleparadise.tf/g" config.toml
|
||||
bash build.sh
|
5
.github/workflows/tf_update_prod.yml
vendored
5
.github/workflows/tf_update_prod.yml
vendored
@ -20,6 +20,7 @@ jobs:
|
||||
script: |
|
||||
cd websites/www_jungle_paradise/
|
||||
git log -1
|
||||
git restore .
|
||||
git pull
|
||||
git fetch
|
||||
git reset --hard origin/master
|
||||
sed -i "s/https:\/\/www2.jungleparadise.tf/https:\/\/jungleparadise.tf/g" config.toml
|
||||
bash build.sh
|
||||
|
Loading…
Reference in New Issue
Block a user