Skip to content

Commit

Permalink
Update deploy workflow and Dockerfile for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kvineet002 committed Aug 25, 2024
1 parent 1ca2ec7 commit c88d4ed
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,23 @@ jobs:
passphrase: ${{ secrets.SSH_PASSPHRASE }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USERNAME }}
script: |
cd /webapps/StudentsPortal/Backend
git fetch origin
git checkout deploy
git pull | tee git-pull.log
docker compose -f docker-compose.yml up -d --build | tee docker-compose.log
- name: List Directories and Navigate to Backend
run: |
ls /webapps | tee ls-output.log
cd /webapps/StudentsPortal/Backend
- name: Fetch Latest Changes from Git
run: |
git fetch origin
- name: Switch to Deploy Branch
run: |
git checkout deploy
- name: Pull Latest Changes
run: |
git pull | tee git-pull.log
- name: Build and Start Docker Containers
run: |
docker compose -f docker-compose.yml up -d --build | tee docker-compose.log

0 comments on commit c88d4ed

Please sign in to comment.