We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5cc8487 + 3c634dc commit c9a0501Copy full SHA for c9a0501
1 file changed
.github/workflows/deploy.yml
@@ -63,10 +63,14 @@ jobs:
63
ssh -o StrictHostKeyChecking=no \
64
-i ~/.ssh/busan-a-spring-server.pem \
65
ubuntu@${{ secrets.PRIVATE_EC2_INTERNAL_IP }} << 'EOF'
66
+
67
+ aws ecr get-login-password --region ap-northeast-2 \
68
+ | docker login --username AWS --password-stdin ${{ steps.login-ecr.outputs.registry }}
69
70
docker stop busan || true
71
docker rm busan || true
72
docker pull ${{ steps.login-ecr.outputs.registry }}/busan:latest
- docker run -d --name busan --restart=unless-stopped \
73
+ docker run -d --name busan --restart=unless-stopped \
74
-e SPRING_PROFILES_ACTIVE=dev \
75
-p 8080:8080 \
76
${{ steps.login-ecr.outputs.registry }}/busan:latest
0 commit comments