Skip to content

Commit

Permalink
[dev] set aws ecr region
Browse files Browse the repository at this point in the history
  • Loading branch information
ghkdqhrbals committed Nov 16, 2023
1 parent 2abddee commit 5253109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
git reset --hard
git pull origin main
cd k8s/onlychat/deployment
sh write_image_to_deploy.sh ${{ env.ECR_URL }} ap-east-2 ${NEW_VERSION}
sh write_image_to_deploy.sh ${{ env.ECR_URL }} ap-northeast-2 ${NEW_VERSION}
kubectl apply -f ./volume/
kubectl apply -f ./namespace/
kubectl apply -f ./service/
Expand Down
2 changes: 1 addition & 1 deletion k8s/onlychat/deployment/write_image_to_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ REGION=$2
VERSION=$3

# ECR에서 모든 이미지 태그 가져오기
ALL_TAGS=$(aws ecr list-images --repository-name chat --filter "tagStatus=TAGGED" --query "imageIds[?contains(imageTag, '${VERSION}')].imageTag" --output text)
ALL_TAGS=$(aws ecr list-images --repository-name chat --filter "tagStatus=TAGGED" --query "imageIds[?contains(imageTag, '${VERSION}')].imageTag" --output text --region "$REGION")
echo "Get all tags from ECR : $ALL_TAGS"
for file in *-deployment.yaml; do
echo "Check file : $file"
Expand Down

0 comments on commit 5253109

Please sign in to comment.