Skip to content

Commit c703a79

Browse files
Rakesh MummanaRakesh Mummana
authored andcommitted
add ci-cd pipeline
1 parent 8f7b509 commit c703a79

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/cd_prod.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name : CD Production Deployment
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
jobs:
7+
redeploy_prod:
8+
name : Redeploy to Production
9+
runs-on : ubuntu-latest
10+
steps:
11+
- name : SSH to Production Server and Redeploy
12+
uses : appleboy/ssh-action@v1
13+
with:
14+
host : ${{ secrets.PROD_SERVER_HOST }}
15+
username : ${{ secrets.PROD_SERVER_USER }}
16+
key : ${{ secrets.PROD_SERVER_SSH_KEY }}
17+
port : 22
18+
script : |
19+
echo "Starting redeployment on production server..."
20+
21+
22+
23+

0 commit comments

Comments
 (0)