Skip to content

fix: Fix typo link preview hardcode #64

fix: Fix typo link preview hardcode

fix: Fix typo link preview hardcode #64

Workflow file for this run

name: Deploy to remote server
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Connect to remote server via SSH
uses: appleboy/[email protected]
with:
# IN CASE THIS ERROR:
# 2020/08/29 01:19:13 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
# DO THIS: https://github.com/appleboy/ssh-action/issues/80#issuecomment-1519113584 and https://github.com/appleboy/ssh-action/issues/80#issuecomment-1716795876
# 2024/01/15 15:17:19 dial tcp ***:22: i/o timeout
# DO THIS: check server is ssh-able
host: ${{ secrets.REMOTE_SERVER_IP }}
username: ${{ secrets.REMOTE_SERVER_USER }}
key: ${{ secrets.REMOTE_SERVER_PRIVATE_KEY }} # content of ssh private key. ex raw content of ~/.ssh/id_rsa, remember include the BEGIN and END lines
command_timeout: 20m
# Build, recreate, clean
script: |
# cd ~/${{ secrets.REMOTE_SERVER_DIR }} && \
# sudo git pull https://${{ secrets.REPO_USERNAME }}:${{ secrets.REPO_TOKEN }}@github.com/${{ secrets.REPO_USERNAME }}/${{ secrets.REPO_NAME }}.git && \
# sudo chown -R ${{ secrets.REMOTE_SERVER_USER }}:${{ secrets.REMOTE_SERVER_USER }} . && \
# sudo bash run.sh _docker:build && \
# sudo bash run.sh docker:down && \
# sudo bash run.sh docker:up && \
cd ~/${{ secrets.REMOTE_SERVER_DIR }}2 && \
sudo git pull https://${{ secrets.REPO_USERNAME }}:${{ secrets.REPO_TOKEN }}@github.com/${{ secrets.REPO_USERNAME }}/${{ secrets.REPO_NAME }}.git && \
sudo chown -R ${{ secrets.REMOTE_SERVER_USER }}:${{ secrets.REMOTE_SERVER_USER }} . && \
sudo bash run.sh docker:build && \
sudo bash run.sh docker:up