Skip to content

Commit 5a2eeb5

Browse files
authored
Merge pull request #155 from ghkdqhrbals/test/only-chat
[dev] set aws ecr region
2 parents 6de97a0 + 5253109 commit 5a2eeb5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
git reset --hard
128128
git pull origin main
129129
cd k8s/onlychat/deployment
130-
sh write_image_to_deploy.sh ${{ env.ECR_URL }} ap-east-2 ${NEW_VERSION}
130+
sh write_image_to_deploy.sh ${{ env.ECR_URL }} ap-northeast-2 ${NEW_VERSION}
131131
kubectl apply -f ./volume/
132132
kubectl apply -f ./namespace/
133133
kubectl apply -f ./service/

k8s/onlychat/deployment/write_image_to_deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ REGION=$2
1111
VERSION=$3
1212

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

0 commit comments

Comments
 (0)