www_duniayetu/.github/workflows/tf_update_prod.yml

25 lines
623 B
YAML
Raw Normal View History

2023-08-06 09:02:56 +00:00
name: freezone.ourworld.tf
2023-05-25 12:06:13 +00:00
on:
push:
branches: [ master ]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
2023-08-06 09:02:56 +00:00
- name: pushing latest change on freezone.ourworld.tf
2023-05-25 12:06:13 +00:00
uses: appleboy/ssh-action@master
with:
2023-08-06 09:02:56 +00:00
host: freezone.ourworld.tf
2023-05-25 12:06:13 +00:00
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
2023-07-19 09:52:37 +00:00
cd websites/www_ourzone/
2023-05-25 12:06:13 +00:00
git log -1
2023-07-19 09:52:37 +00:00
git fetch
git reset --hard origin/master
2023-08-06 09:02:56 +00:00
sed -i "s/https:\/\/www2.freezone.ourworld.tf/https:\/\/freezone.ourworld.tf/g" config.toml
2023-05-25 12:06:13 +00:00
./build.sh