We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23dbcab commit 4639babCopy full SHA for 4639bab
build.yml
@@ -5,4 +5,6 @@ phases:
5
- docker login -u AWS -p $(aws ecr get-login-password --region $AWS_REGION) $ECR_ENDPOINT
6
- docker build -t builtimage .
7
- docker tag builtimage:latest $ECR_IMAGE_URL:latest
8
- - docker push $ECR_IMAGE_URL:latest
+ - 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