merge to master #12

Merged
PeterNashaat merged 8 commits from development into master 2023-05-29 06:46:42 +00:00
3 changed files with 48 additions and 23 deletions
Showing only changes of commit f0c9f5fd4a - Show all commits

View File

@ -1,23 +0,0 @@
name: zanzibar.ourworld.tf
on:
push:
branch: [main]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on zanzibar.ourworld.tf
uses: appleboy/ssh-action@master
with:
host: zanzibar.ourworld.tf
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www_ourparadise_new/
git log -1
git restore .
git pull
bash build.sh

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

@ -0,0 +1,24 @@
name: www2.zanzibar.ourworld.tf
on:
push:
branches: [ development ]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www2.zanzibar.ourworld.tf
uses: appleboy/ssh-action@master
with:
host: www2.zanzibar.ourworld.tf
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www2/www_eden/
git log -1
git restore .
git pull
sed -i "s/https:\/\/zanzibar.ourworld.tf/https:\/\/www2.zanzibar.ourworld.tf/g" config.toml
./build.sh

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

@ -0,0 +1,24 @@
name: zanzibar.ourworld.tf
on:
push:
branches: [ master ]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on zanzibar.ourworld.tf
uses: appleboy/ssh-action@master
with:
host: zanzibar.ourworld.tf
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www_eden/
git log -1
git restore .
git pull
sed -i "s/https:\/\/www2.zanzibar.ourworld.tf/https:\/\/zanzibar.ourworld.tf/g" config.toml
./build.sh