Skip to content

Commit fb27f43

Browse files
FIPS_REPOSITORY_URI
1 parent 8e10bb3 commit fb27f43

3 files changed

Lines changed: 8 additions & 11 deletions

File tree

buildspec/merge_master.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ version: 0.2
22
phases:
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...

buildspec/push.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ version: 0.2
22
phases:
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

buildspec/release.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ version: 0.2
22
phases:
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%.*}

0 commit comments

Comments
 (0)