forked from duniayetu/www_duniayetu
adding auto dep
This commit is contained in:
parent
cc85cf38e5
commit
ba16edf2e0
14
.github/workflows/tf_update_dev.yml
vendored
14
.github/workflows/tf_update_dev.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: www2.ourphone.tf
|
||||
name: www2.ourzone.ourworld.tf
|
||||
on:
|
||||
push:
|
||||
branches: [ development ]
|
||||
@ -8,17 +8,17 @@ jobs:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: pushing latest change on www2.ourphone.tf
|
||||
- name: pushing latest change on www2.ourzone.ourworld.tf
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: www2.ourphone.tf
|
||||
host: www2.ourzone.ourworld.tf
|
||||
username: webuser
|
||||
key: ${{ secrets.TF_SECRET }}
|
||||
port: 34022
|
||||
script: |
|
||||
cd websites/www2/www_ourphone/
|
||||
cd websites/www2/www_ourzone/
|
||||
git log -1
|
||||
git restore .
|
||||
git pull
|
||||
sed -i "s/https:\/\/ourphone.tf/https:\/\/www2.ourphone.tf/g" config.toml
|
||||
git fetch
|
||||
git reset --hard origin/development
|
||||
sed -i "s/https:\/\/ourzone.ourworld.tf/https:\/\/www2.ourzone.ourworld.tf/g" config.toml
|
||||
./build.sh
|
||||
|
14
.github/workflows/tf_update_prod.yml
vendored
14
.github/workflows/tf_update_prod.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: ourphone.tf
|
||||
name: ourzone.ourworld.tf
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
@ -8,17 +8,17 @@ jobs:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: pushing latest change on ourphone.tf
|
||||
- name: pushing latest change on ourzone.ourworld.tf
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ourphone.tf
|
||||
host: ourzone.ourworld.tf
|
||||
username: webuser
|
||||
key: ${{ secrets.TF_SECRET }}
|
||||
port: 34022
|
||||
script: |
|
||||
cd websites/www_ourphone/
|
||||
cd websites/www_ourzone/
|
||||
git log -1
|
||||
git restore .
|
||||
git pull
|
||||
sed -i "s/https:\/\/ourphone.tf/https:\/\/ourphone.tf/g" config.toml
|
||||
git fetch
|
||||
git reset --hard origin/master
|
||||
sed -i "s/https:\/\/www2.ourzone.ourworld.tf/https:\/\/ourzone.ourworld.tf/g" config.toml
|
||||
./build.sh
|
||||
|
Loading…
Reference in New Issue
Block a user