Skip to content

Commit d3874df

Browse files
committed
Fix deploy workflows
1 parent ebdd76d commit d3874df

2 files changed

Lines changed: 3 additions & 32 deletions

File tree

.github/workflows/deploy-dev.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/deploy-prod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
# https://stackoverflow.com/a/70447517
2222
run: |
2323
install -m 600 -D /dev/null ~/.ssh/id_rsa
24-
echo "${{ secrets.SSH_PRIVATE_KEY_PROD }}" > ~/.ssh/id_rsa
25-
ssh-keyscan -H ${{ secrets.SSH_HOST_PROD }} > ~/.ssh/known_hosts
24+
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
25+
ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts
2626
- name: connect and pull
27-
run: ssh ${{ secrets.SSH_USER_PROD }}@${{ secrets.SSH_HOST_PROD }} "/home/ubuntu/update.sh && exit"
27+
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "/home/ubuntu/update.sh && exit"
2828
- name: cleanup
2929
run: rm -rf ~/.ssh

0 commit comments

Comments
 (0)