Skip to content

Commit 6efd17e

Browse files
Fix production deployment: pull latest code from git before updating containers
1 parent 013a737 commit 6efd17e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,12 @@ jobs:
3030
username: root
3131
password: 6GypPLqpN=tp8$G
3232
script: |
33-
docker pull utkarshs7/ourawork:latest
3433
cd /root/ourawork
34+
# Pull latest code from git
35+
git pull origin main
36+
# Pull latest Docker image
37+
docker pull utkarshs7/ourawork:latest
38+
# Restart containers
3539
docker compose down
3640
docker compose up -d
3741
# Run DB seed script

0 commit comments

Comments
 (0)