adding auto dep

This commit is contained in:
petep 2023-07-19 09:52:37 +00:00
parent cc85cf38e5
commit ba16edf2e0
2 changed files with 14 additions and 14 deletions

View File

@ -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

View File

@ -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