This repository has been archived on 2025-06-11. You can view files and clone it, but cannot push or open issues or pull requests.
www_eden/.github/workflows/tf_update_prod.yml
2023-05-25 12:44:32 +00:00

25 lines
602 B
YAML

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