Skip to content

Commit

Permalink
CI-feat: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nischalstha9 committed Oct 5, 2023
1 parent a7e276d commit 5138b16
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Deploy Tasking Manager

on:
push:
branches:
- deployment/naxa
workflow_dispatch:

jobs:
deploy:
name: Deploy to Server
runs-on: [ubuntu-latest]
steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Recreate Services
uses: appleboy/ssh-action@master
with:
host: ${{ vars.SERVER_IP }}
username: ${{ vars.SERVER_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
command_timeout: 20m
script: |
echo '==In Server=='
cd /home/ubuntu/Projects/tasking-manager
git pull naxa deployment/naxa
docker compose build --no-cache
docker compose up -d --force-recreate

0 comments on commit 5138b16

Please sign in to comment.