Skip to content

Commit

Permalink
Change Deploy yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
prominhaj committed Sep 1, 2024
1 parent e63f223 commit 9adfea3
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ jobs:
- name: Check Disk Space
run: df -h

# - name: Stop and remove old container if exists
# run: |
# if [ $(docker ps -q -f name=prominhaj-portfolio-container) ]; then
# docker stop prominhaj-portfolio-container
# docker rm prominhaj-portfolio-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: Stop and remove old container if exists
run: |
if [ $(docker ps -q -f name=prominhaj-portfolio-container) ]; then
docker stop prominhaj-portfolio-container
docker rm prominhaj-portfolio-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: Pull image from Docker Hub
run: docker pull prominhaj/prominhaj-portfolio:latest
Expand Down

0 comments on commit 9adfea3

Please sign in to comment.