File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 - aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${FIPS_REPOSITORY_URI}
88 - export ECR_ACCOUNT_ID="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f1)"
99 - export ECR_REGION="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f4)"
10- - echo "ECR Account ID:" $ECR_ACCOUNT_ID
11- - echo "ECR Region:" $ECR_REGION
1210 build :
1311 commands :
1412 - echo Building the Docker image...
Original file line number Diff line number Diff line change @@ -11,11 +11,8 @@ phases:
1111 - export ECR_ACCOUNT_ID="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f1)"
1212 - export ECR_REGION="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f4)"
1313 - echo Building the Docker image...
14- - echo $FIPS_REPOSITORY_URI
1514 - echo $COMMIT_HASH_SHORT
1615 - echo $BRANCH_NAME
17- - echo "ECR Account ID:" $ECR_ACCOUNT_ID
18- - echo "ECR Region:" $ECR_REGION
1916 - docker build --build-arg ECR_ACCOUNT_ID=${ECR_ACCOUNT_ID} --build-arg ECR_REGION=${ECR_REGION} --tag ${FIPS_REPOSITORY_URI}:${COMMIT_HASH_SHORT} --tag ${FIPS_REPOSITORY_URI}:${BRANCH_NAME} .
2017 - docker image push --all-tags ${FIPS_REPOSITORY_URI}
2118 post_build :
Original file line number Diff line number Diff line change @@ -10,9 +10,6 @@ phases:
1010 - aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${FIPS_REPOSITORY_URI}
1111 - export ECR_ACCOUNT_ID="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f1)"
1212 - export ECR_REGION="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f4)"
13- - echo "ECR Account ID:" $ECR_ACCOUNT_ID
14- - echo "ECR Region:" $ECR_REGION
15- - echo Building the Docker image...
1613 - PATCH_TAG=${TAG_NAME#"v"}
1714 - MINOR_TAG=${PATCH_TAG%.*}
1815 - MAJOR_TAG=${MINOR_TAG%.*}
You can’t perform that action at this time.
0 commit comments