Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
luutuankiet committed Feb 18, 2024
1 parent 8e5a8b4 commit 5de75ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
mkdir -p ~/.ssh
echo "$SERVER_HOST_KEY" > ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts
echo "$CLIENT_SECRET_KEY" > ~/.ssh/id_ed25519
echo """$CLIENT_SECRET_KEY""" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
Expand All @@ -28,7 +28,7 @@ jobs:
run: |
# Add your commands here to update the server
# Example: Replace the following with your deployment commands
ssh [email protected] -p 15109 "cd /main/scrape_ticktick && git fetch origin main && git reset --hard origin/main && make deploy"
ssh -o StrictHostKeyChecking=no [email protected] -p 15109 "cd /main/scrape_ticktick && git fetch origin main && git reset --hard origin/main && make deploy"
env:
SERVER_HOST_KEY: ${{ secrets.SERVER_HOST_KEY }}
CLIENT_SECRET_KEY: ${{ secrets.CLIENT_SECRET_KEY }}

0 comments on commit 5de75ff

Please sign in to comment.