Skip to content

Commit

Permalink
[CD][Hai] redefine the path to ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
HaiHungNguyenn committed Jan 31, 2024
1 parent fed4dba commit 0629958
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:

- name: Configure SSH Key
run: |
if [ ! -d ~/.ssh ]; then
mkdir ~/.ssh
if [ ! -d $HOME/.ssh ]; then
mkdir $HOME/.ssh
fi
echo "${{ secrets.AZURE_SSH_KEY }}" | base64 -d > ~/.ssh/azure_vm_key
echo "${{ secrets.AZURE_SSH_KEY }}" | base64 -d > $HOME/.ssh/azure_vm_key
chmod 600 ~/.ssh/azure_vm_key
- name: Deploy to Azure VM
Expand Down

0 comments on commit 0629958

Please sign in to comment.