Skip to content

Commit

Permalink
added github action to deploy OTP_based server
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-singh8 committed Sep 11, 2023
1 parent 4181c00 commit 397d07b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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"

0 comments on commit 397d07b

Please sign in to comment.