Skip to content

Commit

Permalink
Update CD.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
luutuankiet authored Feb 18, 2024
1 parent d497e88 commit 907494a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +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
"""
echo "$CLIENT_SECRET_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
Expand All @@ -34,6 +29,6 @@ jobs:
# Add your commands here to update the server
# Example: Replace the following with your deployment commands
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 }}
env:
SERVER_HOST_KEY: ${{ secrets.SERVER_HOST_KEY }}
CLIENT_SECRET_KEY: ${{ secrets.CLIENT_SECRET_KEY }}

0 comments on commit 907494a

Please sign in to comment.