Update tf_update.yml

This commit is contained in:
PeterNashaat 2023-03-02 14:51:24 +02:00 committed by GitHub
parent c408b816cc
commit 32e6887b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
name: ourparadise.ourworld.tf
name: zanzibar.ourworld.tf
on:
push:
branch: [main]
@ -8,15 +8,15 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on ourparadise.ourworld.tf
- name: pushing latest change on zanzibar.ourworld.tf
uses: appleboy/ssh-action@master
with:
host: ourparadise.ourworld.tf
host: zanzibar.ourworld.tf
username: webuser
key: ${{ secrets.TF_SECRET }}
port: 34022
script: |
cd websites/www_ourparadise/
cd websites/www_ourparadise_new/
git log -1
git restore .
git pull