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 0701d5b commit 62bb245
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/icurri_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 62bb245

Please sign in to comment.