www_ourphone/.github/workflows/tf_update_prod.yml
2023-08-20 07:35:58 +00:00

25 lines
574 B
YAML

name: ourphone.tf
on:
push:
branches: [ master ]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on ourphone.tf
uses: appleboy/ssh-action@master
with:
host: ourphone.tf
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www_ourphone/
git log -1
git fetch
git reset --hard origin/master
sed -i "s/https:\/\/ourphone.tf/https:\/\/ourphone.tf/g" config.toml
./build.sh