Skip to content

Commit

Permalink
Update build-and-push-and-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rssws authored Jun 25, 2022
1 parent f010ac9 commit af7b96d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-and-push-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,13 @@ jobs:
- name: Create SSH private key
run: |
mkdir -p ~/.ssh/
echo "$SSH_PRIVATE_KEY" > ../private.key
sudo chmod 600 ../private.key
echo "$SSH_PRIVATE_KEY" > ~/.ssh/private
sudo chmod 600 ~/.ssh/private
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
shell: bash
env:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
SSH_KNOWN_HOSTS: ${{ secrets.DEPLOY_SSH_KNOWN_HOSTS }}
SSH_KEY_PATH: ${{ github.workspace }}/../private.key

- name: Replace version in .env.prod
run: |
Expand Down

0 comments on commit af7b96d

Please sign in to comment.