added github action to deploy OTP_based server #1
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 OTP_based | |
on: | |
push: | |
branch: | |
- otp-dev | |
jobs: | |
deploy_OTP_validation_server: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: SSH and Deploy | |
env: | |
SSH_PRIVATE_KEY: ${{secrets.AZURE_SECRET}} | |
run: | | |
echo "$SSH_PRIVATE_KEY" > keyfile | |
ssh -i keyfile [email protected] "bash ~/deploy.sh" |