Skip to content

Commit

Permalink
Change Deploy Server and learn-pulse-edu-container
Browse files Browse the repository at this point in the history
  • Loading branch information
prominhaj committed Aug 2, 2024
1 parent 368f923 commit 252f205
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,22 @@ jobs:

- name: Stop and remove old container if exists
run: |
if [ $(docker ps -q -f name=nextjs-app-container) ]; then
docker stop nextjs-app-container
docker rm nextjs-app-container
if [ $(docker ps -q -f name=learn-pulse-edu-container) ]; then
docker stop learn-pulse-edu-container
docker rm learn-pulse-edu-container
fi
# - name: Remove old Docker images
# run: |
# docker rmi -f $(docker images -q)

# - name: Free up Docker space
# run: |
# docker system prune -af
# docker volume prune -f
- name: Free up Docker space
run: |
docker system prune -af
docker volume prune -f
- name: Pull image from Docker Hub
run: docker pull prominhaj/learn-pulse-edu:latest

- name: Run Docker container
run: docker run -d -p 3000:3000 --env-file .env --name nextjs-app-container prominhaj/learn-pulse-edu:latest
run: docker run -d -p 3000:3000 --env-file .env --name learn-pulse-edu-container prominhaj/learn-pulse-edu:latest

0 comments on commit 252f205

Please sign in to comment.