Skip to content

Commit

Permalink
Merge pull request #10 from anderslatif/master
Browse files Browse the repository at this point in the history
Fixing broken tutorial
  • Loading branch information
HelgeCPH authored Feb 22, 2024
2 parents 058704b + 4dfc5e4 commit 8714bb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/continous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ jobs:
- name: Configure SSH
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/minitwit.key
chmod 600 ~/.ssh/minitwit.key
echo "$SSH_KEY" > ~/.ssh/do_ssh_key
chmod 600 ~/.ssh/do_ssh_key
env:
SSH_KEY: ${{ secrets.SSH_KEY }}

- name: Deploy to server
# Configure the ~./bash_profile and deploy.sh file on the Vagrantfile
run: >
ssh $SSH_USER@$SSH_HOST
-i ~/.ssh/minitwit.key -o StrictHostKeyChecking=no
-i ~/.ssh/do_ssh_key -o StrictHostKeyChecking=no
'/minitwit/deploy.sh'
env:
SSH_USER: ${{ secrets.SSH_USER }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ssh-keygen -f ~/.ssh/do_ssh_key -t rsa -b 4096 -m "PEM"

Hit enter two times to accept the proposed defaults.
You can call the SSH key files whatever you want, but the `Vagrantfile` expects the SSH keys to have that specific name.
So in case you use another name, adapt the `Vagrantfile` accordingly (line `provider.ssh_key_name = "do_ssh_key"`).
So in case you use another name, adapt the `Vagrantfile` accordingly (line `provider.ssh_key_name = "do_ssh_key"`). Additionally for Step 4, you must change it all 3 times it is being defined in in `.github/workflows/continous-deployment.yml`


### Step 1.b) Register your Public SSH at DigitalOcean
Expand Down

0 comments on commit 8714bb0

Please sign in to comment.