File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ version: 0.2
22phases :
33 pre_build :
44 commands :
5- - export DOCKER_BUILDKIT=1
65 - export ECR_ACCOUNT_ID="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f1)"
7- - export ECR_REGION="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f4)"
6+ - export COMMIT_HASH_SHORT="$(echo $COMMIT_HASH | cut -c 1-7)"
7+ - echo Logging in to Amazon ECR...
8+ - aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${FIPS_REPOSITORY_URI}
89 build :
910 commands :
1011 - echo Building the Docker image...
Original file line number Diff line number Diff line change @@ -2,14 +2,12 @@ version: 0.2
22phases :
33 pre_build :
44 commands :
5- - export DOCKER_BUILDKIT=1
65 - export ECR_ACCOUNT_ID="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f1)"
7- - export ECR_REGION="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f4)"
8- build :
9- commands :
6+ - export COMMIT_HASH_SHORT="$(echo $COMMIT_HASH | cut -c 1-7)"
107 - echo Logging in to Amazon ECR...
118 - aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${FIPS_REPOSITORY_URI}
12- - export COMMIT_HASH_SHORT="$(echo $COMMIT_HASH | cut -c 1-7)"
9+ build :
10+ commands :
1311 - echo Building the Docker image...
1412 - echo $FIPS_REPOSITORY_URI
1513 - echo $COMMIT_HASH_SHORT
Original file line number Diff line number Diff line change @@ -2,13 +2,11 @@ version: 0.2
22phases :
33 pre_build :
44 commands :
5- - export DOCKER_BUILDKIT=1
65 - export ECR_ACCOUNT_ID="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f1)"
7- - export ECR_REGION="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f4)"
8- build :
9- commands :
106 - echo Logging in to Amazon ECR...
117 - aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${FIPS_REPOSITORY_URI}
8+ build :
9+ commands :
1210 - echo Building the Docker image...
1311 - PATCH_TAG=${TAG_NAME#"v"}
1412 - MINOR_TAG=${PATCH_TAG%.*}
You can’t perform that action at this time.
0 commit comments