Skip to content

Commit

Permalink
Fixed deployment command, order is important
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeCPH committed Feb 21, 2023
1 parent 7514859 commit 5257764
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/continous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
# allow manual triggers for now too
workflow_dispatch:
manual: true

# Remember to set the following secrets in your repository's settings:
# https://github.com/your_username/itu-minitwit-ci/settings/secrets/actions
# DOCKER_USERNAME
Expand Down Expand Up @@ -94,8 +94,9 @@ jobs:
- name: Deploy to server
# Configure the ~./bash_profile and deploy.sh file on the Vagrantfile
run: >
ssh $SSH_USER@$SSH_HOST '/minitwit/deploy.sh'
ssh $SSH_USER@$SSH_HOST
-i ~/.ssh/minitwit.key -o StrictHostKeyChecking=no
'/minitwit/deploy.sh'
env:
SSH_USER: ${{ secrets.SSH_USER }}
SSH_HOST: ${{ secrets.SSH_HOST }}

0 comments on commit 5257764

Please sign in to comment.