From 5e74ce2040e441f9e505c854069139320c563433 Mon Sep 17 00:00:00 2001 From: Peter Nashaat Date: Mon, 3 Apr 2023 13:15:09 +0000 Subject: [PATCH 1/2] adding workflow --- .github/workflows/tf_update_dev.yml | 25 +++++++++++++++++++++++++ .github/workflows/tf_update_prod.yml | 25 +++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/tf_update_dev.yml create mode 100644 .github/workflows/tf_update_prod.yml diff --git a/.github/workflows/tf_update_dev.yml b/.github/workflows/tf_update_dev.yml new file mode 100644 index 0000000..122dc23 --- /dev/null +++ b/.github/workflows/tf_update_dev.yml @@ -0,0 +1,25 @@ +name: Jungleparadise Staging +on: + push: + branches: + - development + + +jobs: + job_one: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: pushing latest change on www2.jungleparadise.tf + uses: appleboy/ssh-action@master + with: + host: www2.jungleparadise.tf + username: ${{ secrets.TF_USER }} + key: ${{ secrets.TF_SECRET }} + port: ${{ secrets.TF_PORT }} + script: | + cd websites/www2/www_jungle_paradise/ + git log -1 + git restore . + git pull + bash build.sh diff --git a/.github/workflows/tf_update_prod.yml b/.github/workflows/tf_update_prod.yml new file mode 100644 index 0000000..17aef9e --- /dev/null +++ b/.github/workflows/tf_update_prod.yml @@ -0,0 +1,25 @@ +name: Jungleparadise Production +on: + push: + branches: + - main + + +jobs: + job_one: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: pushing latest change on www.jungleparadise.tf + uses: appleboy/ssh-action@master + with: + host: www.jungleparadise.tf + username: ${{ secrets.TF_USER }} + key: ${{ secrets.TF_SECRET }} + port: ${{ secrets.TF_PORT }} + script: | + cd websites/www_jungle_paradise/ + git log -1 + git restore . + git pull + bash build.sh From 9ff5af2e26c337acc6a5518f941e296a3ce3448d Mon Sep 17 00:00:00 2001 From: Peter Nashaat Date: Mon, 3 Apr 2023 13:16:54 +0000 Subject: [PATCH 2/2] adding workflow --- config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.toml b/config.toml index c1b43b3..623195f 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ # The URL the site will be built for -base_url = "https://www.jungle_paradise/" +base_url = "https://www2.jungleparadise.tf/" # Change this to your own URL! Please note this variable **must** be uncommented. title = "Jungle Paradise"