diff --git a/.github/workflows/continous-deployment.yml b/.github/workflows/continous-deployment.yml index c925378..aea07da 100644 --- a/.github/workflows/continous-deployment.yml +++ b/.github/workflows/continous-deployment.yml @@ -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 @@ -85,8 +85,9 @@ jobs: - name: Deploy to server # Configure the ~./bash_profile and deploy.sh file on the Vagrantfile run: > - ssh -i ~/.ssh/minitwit.key -o StrictHostKeyChecking=no - $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 }} \ No newline at end of file