Skip to content

Commit

Permalink
add auto deployment files
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterNashaat committed Oct 18, 2023
1 parent 6ee2eed commit 1507d6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tf_update_dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: www2.freezone.ourworld.tf
name: www2.mycelium.threefold.io
on:
push:
branches: [ development ]
Expand All @@ -8,17 +8,17 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www2.freezone.ourworld.tf
- name: pushing latest change on www2.mycelium.threefold.io
uses: appleboy/ssh-action@master
with:
host: www2.freezone.ourworld.tf
host: www2.mycelium.threefold.io
username: ${{ secrets.TF_USER }}
key: ${{ secrets.TF_SECRET }}
port: ${{ secrets.TF_PORT }}
script: |
cd websites/www2/www_ourworld_freezone/
cd websites/www2/www_mycelium
git log -1
git fetch
git reset --hard origin/development
sed -i "s/https:\/\/freezone.ourworld.tf/https:\/\/www2.freezone.ourworld.tf/g" config.toml
sed -i "s/https:\/\/mycelium.threefold.io/https:\/\/www2.mycelium.threefold.io/g" config.toml
./build.sh
10 changes: 5 additions & 5 deletions .github/workflows/tf_update_prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: freezone.ourworld.tf
name: mycelium.threefold.io
on:
push:
branches: [ master ]
Expand All @@ -8,17 +8,17 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on freezone.ourworld.tf
- name: pushing latest change on mycelium.threefold.io
uses: appleboy/ssh-action@master
with:
host: freezone.ourworld.tf
host: mycelium.threefold.io
username: ${{ secrets.TF_USER }}
key: ${{ secrets.TF_SECRET }}
port: ${{ secrets.TF_PORT }}
script: |
cd websites/www_ourworld_freezone/
cd websites/www_mycelium
git log -1
git fetch
git reset --hard origin/master
sed -i "s/https:\/\/www2.freezone.ourworld.tf/https:\/\/freezone.ourworld.tf/g" config.toml
sed -i "s/https:\/\/www2.mycelium.threefold.io/https:\/\/mycelium.threefold.io/g" config.toml
./build.sh

0 comments on commit 1507d6f

Please sign in to comment.