diff --git a/.github/workflows/icurri_deploy.yml b/.github/workflows/icurri_deploy.yml index f226007..197cf7e 100644 --- a/.github/workflows/icurri_deploy.yml +++ b/.github/workflows/icurri_deploy.yml @@ -95,9 +95,10 @@ jobs: username: ubuntu key: ${{ secrets.RELEASE_SSH_KEY }} script: | - sudo docker stop $(sudo docker ps -a -q) || true - sudo docker rm $(sudo docker ps -a -q) || true - sudo docker images -q | xargs -r docker rmi || true + sudo docker ps -a -q | xargs -r sudo docker stop + sudo docker ps -a -q | xargs -r sudo docker rm + sudo docker images -q | xargs -r sudo docker rmi sudo docker system prune -af - aws ecr get-login-password --region ap-northeast-2 | sudo docker login --username AWS --password-stdin ${{ secrets.ECR_URI }} && sudo docker pull ${{ secrets.ECR_URI }}:${{ github.sha }} + aws ecr get-login-password --region ap-northeast-2 | sudo docker login --username AWS --password-stdin ${{ secrets.ECR_URI }} + sudo docker pull ${{ secrets.ECR_URI }}:${{ github.sha }} sudo docker run --name dotflow-dev-repo -d -e SPRING_PROFILE=dev -e TZ=Asia/Seoul -e SERVER=true -p 8080:8080 ${{ secrets.ECR_URI }}:${{ github.sha }}