Merge pull request #18 from ourworld-tsc/development
adding autodep for prod
This commit is contained in:
commit
eb6e29f114
23
.github/workflows/tf_update.yml
vendored
23
.github/workflows/tf_update.yml
vendored
@ -1,23 +0,0 @@
|
||||
name: ourparadise.ourworld.tf
|
||||
on:
|
||||
push:
|
||||
branch: [main]
|
||||
|
||||
jobs:
|
||||
job_one:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: pushing latest change on ourparadise.ourworld.tf
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ourparadise.ourworld.tf
|
||||
username: webuser
|
||||
key: ${{ secrets.TF_SECRET }}
|
||||
port: 34022
|
||||
script: |
|
||||
cd websites/www_ourparadise/
|
||||
git log -1
|
||||
git restore .
|
||||
git pull
|
||||
bash build.sh
|
24
.github/workflows/tf_update_dev.yml
vendored
Normal file
24
.github/workflows/tf_update_dev.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: www2.ourparadise.ourworld.tf
|
||||
on:
|
||||
push:
|
||||
branches: [ development ]
|
||||
|
||||
jobs:
|
||||
job_one:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: pushing latest change on www2.ourparadise.ourworld.tf
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: www2.ourparadise.ourworld.tf
|
||||
username: webuser
|
||||
key: ${{ secrets.TF_SECRET }}
|
||||
port: 34022
|
||||
script: |
|
||||
cd websites/www2/www_ourparadise/
|
||||
git log -1
|
||||
git restore .
|
||||
git pull
|
||||
sed -i "s/https:\/\/ourparadise.ourworld.tf/https:\/\/www2.ourparadise.ourworld.tf/g" config.toml
|
||||
./build.sh
|
24
.github/workflows/tf_update_prod.yml
vendored
Normal file
24
.github/workflows/tf_update_prod.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
name: ourparadise.ourworld.tf
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
job_one:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: pushing latest change on ourparadise.ourworld.tf
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ourparadise.ourworld.tf
|
||||
username: webuser
|
||||
key: ${{ secrets.TF_SECRET }}
|
||||
port: 34022
|
||||
script: |
|
||||
cd websites/www_ourparadise/
|
||||
git log -1
|
||||
git restore .
|
||||
git pull
|
||||
sed -i "s/https:\/\/www2.ourparadise.ourworld.tf/https:\/\/ourparadise.ourworld.tf/g" config.toml
|
||||
./build.sh
|
Reference in New Issue
Block a user