Skip to content

Commit

Permalink
fix: 배포 스크립트 수정 (#437)
Browse files Browse the repository at this point in the history
* fix: 배포 스크립트 수정

[#436]

* fix: image 를 제거하는 부분도 그대로 남겨둔다

* fix: image 삭제 스크립트 추가

[#436]

* fix: image 삭제 스크립트 추가

[#436]

---------

Co-authored-by: be-student <[email protected]>
  • Loading branch information
drunkenhw and be-student authored Aug 11, 2023
1 parent c7a98b6 commit bc4ccfd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
script: |
sudo docker pull woowacarffeine/backend:latest
sudo docker stop backend || true
sudo docker container prune
sudo docker container prune -f
sudo docker run -d -p 8080:8080 \
-e "SPRING_PROFILE=prod" \
Expand All @@ -89,4 +89,4 @@ jobs:
--name backend \
woowacarffeine/backend:latest
sudo docker image prune -f
sudo docker image prune -a -f
4 changes: 2 additions & 2 deletions .github/workflows/backend-dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
script: |
sudo docker pull woowacarffeine/backend-dev:latest
sudo docker stop backend-dev || true
sudo docker container prune
sudo docker container prune -f
sudo docker run -d -p 8081:8080 \
-e "SPRING_PROFILE=dev" \
Expand All @@ -89,4 +89,4 @@ jobs:
--name backend-dev \
woowacarffeine/backend-dev:latest
sudo docker image prune -f
sudo docker image prune -a -f
9 changes: 5 additions & 4 deletions .github/workflows/frontend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@ jobs:

script: |
sudo docker stop frontend || true
sudo docker container prune
sudo docker container prune -f
sudo docker pull woowacarffeine/frontend:latest
sudo docker run -d -p 3000:3000 \
--name frontend \
woowacarffeine/frontend:latest
sudo docker image prune -f
- name: clean images
sudo docker image prune -a -f
- name: clean overlay
run: |
docker image prune -f
sudo docker image prune -f
sudo docker system prune -a -f
9 changes: 5 additions & 4 deletions .github/workflows/frontend-dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ jobs:

script: |
sudo docker stop frontend-dev || true
sudo docker container prune
sudo docker container prune -f
sudo docker pull woowacarffeine/frontend-dev:latest
sudo docker run -d -p 3001:3000 \
--name frontend-dev \
woowacarffeine/frontend-dev:latest
sudo docker image prune -f
- name: clean images
sudo docker image prune -a -f
- name: clean overlay
run: |
docker image prune -f
sudo docker image prune -f
sudo docker system prune -a -f

0 comments on commit bc4ccfd

Please sign in to comment.