Skip to content

Commit 4639bab

Browse files
Update build.yml (#13)
1 parent 23dbcab commit 4639bab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ phases:
55
- docker login -u AWS -p $(aws ecr get-login-password --region $AWS_REGION) $ECR_ENDPOINT
66
- docker build -t builtimage .
77
- docker tag builtimage:latest $ECR_IMAGE_URL:latest
8-
- docker push $ECR_IMAGE_URL:latest
8+
- docker tag builtimage:latest $ECR_IMAGE_URL:$(git rev-parse HEAD)
9+
- docker push $ECR_IMAGE_URL:latest
10+
- docker push $ECR_IMAGE_URL:$(git rev-parse HEAD)

0 commit comments

Comments
 (0)