Skip to content

Commit 68868b7

Browse files
generate image uri correctly
1 parent 71b7b46 commit 68868b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cicd/3-app/aiproxy/buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ phases:
4646
- ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
4747
- AWS_REGION=us-east-1
4848
- ECR_REGISTRY="${ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com"
49-
- IMAGE_URI="${ECR_REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}" # Constructing Image URI
5049
- aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin ${ECR_REGISTRY}
5150

5251
- docker tag ${IMAGE_NAME}:${IMAGE_TAG} ${ECR_REPOSITORY}:${IMAGE_TAG}
@@ -61,6 +60,7 @@ phases:
6160
- cat template.yml
6261

6362
- echo "Creating environment config..."
63+
- IMAGE_URI="${ECR_REPOSITORY}:${IMAGE_TAG}"
6464
- cicd/3-app/aiproxy/config/create-environment-config.sh
6565

6666
- echo "Packaging Cloudformation Template..."

0 commit comments

Comments
 (0)