Merge pull request #3 from ourworld-tsc/development

Creating prod autodep
This commit is contained in:
PeterNashaat 2023-05-18 13:00:45 +03:00 committed by GitHub
commit e44e88465a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 23 deletions

View File

@ -1,23 +0,0 @@
name: ournomads.ourworld.tf
on:
push:
branch: [development]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on ournomads.ourworld.tf
uses: appleboy/ssh-action@master
with:
host: ournomads.ourworld.tf
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www2/www_ournomads/
git log -1
git restore .
git pull
bash build.sh

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

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

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

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