forked from tfcoop/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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ development ]
|
branches: [ development ]
|
||||||
@ -8,17 +8,17 @@ jobs:
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: pushing latest change on www2.ourphone.tf
|
- name: pushing latest change on www2.ourzone.ourworld.tf
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: www2.ourphone.tf
|
host: www2.ourzone.ourworld.tf
|
||||||
username: webuser
|
username: webuser
|
||||||
key: ${{ secrets.TF_SECRET }}
|
key: ${{ secrets.TF_SECRET }}
|
||||||
port: 34022
|
port: 34022
|
||||||
script: |
|
script: |
|
||||||
cd websites/www2/www_ourphone/
|
cd websites/www2/www_ourzone/
|
||||||
git log -1
|
git log -1
|
||||||
git restore .
|
git fetch
|
||||||
git pull
|
git reset --hard origin/development
|
||||||
sed -i "s/https:\/\/ourphone.tf/https:\/\/www2.ourphone.tf/g" config.toml
|
sed -i "s/https:\/\/ourzone.ourworld.tf/https:\/\/www2.ourzone.ourworld.tf/g" config.toml
|
||||||
./build.sh
|
./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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
@ -8,17 +8,17 @@ jobs:
|
|||||||
name: Deploy
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: pushing latest change on ourphone.tf
|
- name: pushing latest change on ourzone.ourworld.tf
|
||||||
uses: appleboy/ssh-action@master
|
uses: appleboy/ssh-action@master
|
||||||
with:
|
with:
|
||||||
host: ourphone.tf
|
host: ourzone.ourworld.tf
|
||||||
username: webuser
|
username: webuser
|
||||||
key: ${{ secrets.TF_SECRET }}
|
key: ${{ secrets.TF_SECRET }}
|
||||||
port: 34022
|
port: 34022
|
||||||
script: |
|
script: |
|
||||||
cd websites/www_ourphone/
|
cd websites/www_ourzone/
|
||||||
git log -1
|
git log -1
|
||||||
git restore .
|
git fetch
|
||||||
git pull
|
git reset --hard origin/master
|
||||||
sed -i "s/https:\/\/ourphone.tf/https:\/\/ourphone.tf/g" config.toml
|
sed -i "s/https:\/\/www2.ourzone.ourworld.tf/https:\/\/ourzone.ourworld.tf/g" config.toml
|
||||||
./build.sh
|
./build.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user