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

View File

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