Skip to content

Commit

Permalink
Update deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
junseokkim committed Jun 9, 2024
1 parent b7451cb commit 5138a09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

# 환경 변수 로드
source /home/ubuntu/deployment/scripts/env.sh

echo "ECR_REGISTRY=$ECR_REGISTRY"
echo "ECR_REPOSITORY=$ECR_REPOSITORY"

cd /home/ubuntu/deployment

CONTAINER_NAME="ohhanahana-app"
Expand All @@ -11,11 +17,13 @@ if [ -n "$EXISTING_CONTAINER" ]; then
fi

IMAGE_NAME="${ECR_REGISTRY}/${ECR_REPOSITORY}:latest"
echo "IMAGE_NAME=$IMAGE_NAME"
docker pull $IMAGE_NAME
docker run -d --name $CONTAINER_NAME -p 8080:8080 $IMAGE_NAME




##!/bin/bash
#
## 환경 변수 로드
Expand Down

0 comments on commit 5138a09

Please sign in to comment.