Skip to content

Commit de9e6df

Browse files
committed
Fix: Docker 컨테이너 삭제 추가
1 parent eef6274 commit de9e6df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/gradle.yml

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
touch scripts/deploy.sh
7373
echo "aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin $ECR_REGISTRY" >> scripts/deploy.sh
7474
echo "docker pull $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> scripts/deploy.sh
75+
echo "docker stop csbroker-api || true" >> scripts/deploy.sh
76+
echo "docker rm csbroker-api || true" >> scripts/deploy.sh
7577
echo "docker run -p 8080:8080 -e PROFILE=dev -d --restart always --name csbroker-api $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> scripts/deploy.sh
7678
7779
- name: Upload to S3

0 commit comments

Comments
 (0)