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 25efcb4 commit 5be065bCopy full SHA for 5be065b
buildspec.yml
@@ -6,13 +6,15 @@ phases:
6
- echo Logging in to Amazon ECR...
7
- aws --version
8
- $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
9
- - IMAGE_TAG=$CODEBUILD_BUILD_ID
+ - IMAGE_TAG=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)
10
+ - echo Getting image tag name
11
+ - echo $CODEBUILD_RESOLVED_SOURCE_VERSION
12
+ - echo $IMAGE_TAG
13
build:
14
commands:
15
- echo Build started on `date`
16
- echo Building the Docker image...
17
- docker build -t $REPOSITORY_URI:latest .
- - echo $IMAGE_TAG
18
- docker tag $REPOSITORY_URI:latest $REPOSITORY_URI:$IMAGE_TAG
19
post_build:
20
0 commit comments