Skip to content

Commit

Permalink
Update icurri_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
genius00hwan authored Nov 23, 2024
1 parent 62bb245 commit 53e95e8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/icurri_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ jobs:
username: ubuntu
key: ${{ secrets.RELEASE_SSH_KEY }}
script: |
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 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 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 }}
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 }}
aws ecr get-login-password --region ap-northeast-2 | sudo

0 comments on commit 53e95e8

Please sign in to comment.