diff --git a/.github/workflows/tf_update.yml b/.github/workflows/tf_update.yml deleted file mode 100644 index bb7c8ea..0000000 --- a/.github/workflows/tf_update.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: ourphone.ourworld.tf -on: - push: - branch: [main] - -jobs: - job_one: - name: Deploy - runs-on: ubuntu-latest - steps: - - name: pushing latest change on ourphone.ourworld.tf - uses: appleboy/ssh-action@master - with: - host: ourphone.ourworld.tf - username: webuser - key: ${{ secrets.TF_SECRET }} - port: 34022 - script: | - cd websites/www_ourphone/ - git log -1 - git restore . - git pull - bash build.sh diff --git a/.github/workflows/tf_update_dev.yml b/.github/workflows/tf_update_dev.yml new file mode 100644 index 0000000..b031f52 --- /dev/null +++ b/.github/workflows/tf_update_dev.yml @@ -0,0 +1,24 @@ +name: www2.ourphone.ourworld.tf +on: + push: + branches: [ development ] + +jobs: + job_one: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: pushing latest change on www2.ourphone.ourworld.tf + uses: appleboy/ssh-action@master + with: + host: www2.ourphone.ourworld.tf + username: webuser + key: ${{ secrets.TF_SECRET }} + port: 34022 + script: | + cd websites/www2/www_ourphone/ + git log -1 + git restore . + git pull + sed -i "s/https:\/\/ourphone.ourworld.tf/https:\/\/www2.ourphone.ourworld.tf/g" config.toml + ./build.sh diff --git a/.github/workflows/tf_update_prod.yml b/.github/workflows/tf_update_prod.yml new file mode 100644 index 0000000..3d767be --- /dev/null +++ b/.github/workflows/tf_update_prod.yml @@ -0,0 +1,24 @@ +name: ourphone.ourworld.tf +on: + push: + branches: [ master ] + +jobs: + job_one: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: pushing latest change on ourphone.ourworld.tf + uses: appleboy/ssh-action@master + with: + host: ourphone.ourworld.tf + username: webuser + key: ${{ secrets.TF_SECRET }} + port: 34022 + script: | + cd websites/www_ourphone/ + git log -1 + git restore . + git pull + sed -i "s/https:\/\/www2.ourphone.ourworld.tf/https:\/\/ourphone.ourworld.tf/g" config.toml + ./build.sh