Merge pull request #1417 from internxt/fix/update-tests #790
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Drive Web CD | |
on: | |
push: | |
branches: [master] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add SSH Key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.PRODUCTION_MACHINE_PRIVATE_KEY }} | |
known_hosts: 'undetermined-yet' | |
- name: Adding Known Hosts | |
run: ssh-keyscan -H ${{ secrets.PRODUCTION_MACHINE_HOSTNAME }} >> ~/.ssh/known_hosts | |
- name: Run Deploy Script | |
run: "ssh -t ${{ secrets.PRODUCTION_MACHINE_USER }}@${{ secrets.PRODUCTION_MACHINE_HOSTNAME }} './deploy-web.sh'" |