Merge pull request #16 from threefoldfoundation/development

merge to master
This commit is contained in:
PeterNashaat 2023-05-29 11:08:50 +03:00 committed by GitHub
commit 80c813b7a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 8 deletions

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

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

View File

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

0
build.sh Normal file → Executable file
View File