Remove genezioToken from codebase #10
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: deploy-to-ec2 | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
name: Deploying NodeJS Application | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: deploying application to EC2 | |
env: | |
PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }} | |
HOSTNAME: ${{ secrets.SERVER_HOST }} | |
USER_NAME: ${{ secrets.SERVER_USERNAME }} | |
run: | | |
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key | |
ssh -o StrictHostKeyChecking=no -i private_key ${USER_NAME}@${HOSTNAME} /home/ubuntu/fuse/deploy.sh | |