Skip to content

Commit 8e10bb3

Browse files
fixed buildspec args
1 parent 2b6f4a0 commit 8e10bb3

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

buildspec/merge_master.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ phases:
77
- export ECR_REGION="$(echo $FIPS_REPOSITORY_URI | cut -d'.' -f4)"
88
build:
99
commands:
10-
- echo Logging in to Amazon ECR...
11-
- aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${FIPS_REPOSITORY_URI}
1210
- echo Building the Docker image...
13-
- docker build --build-arg ECR_ACCOUNT_ID=${ECR_ACCOUNT_ID} --build-arg ECR_REGION=${ECR_REGION} --build-arg BASE_IMAGE_NAME=docker-linuxserver-ubuntu-fips --build-arg BASE_IMAGE_TAG=ubuntu-fips -t ${FIPS_REPOSITORY_URI}:latest .
11+
- docker build --build-arg ECR_ACCOUNT_ID=${ECR_ACCOUNT_ID} -t ${FIPS_REPOSITORY_URI}:latest .
1412
- docker image push --all-tags ${FIPS_REPOSITORY_URI}
1513
post_build:
1614
commands:

buildspec/push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ phases:
1414
- echo $FIPS_REPOSITORY_URI
1515
- echo $COMMIT_HASH_SHORT
1616
- echo $BRANCH_NAME
17-
- docker build --build-arg ECR_ACCOUNT_ID=${ECR_ACCOUNT_ID} --build-arg ECR_REGION=${ECR_REGION} --build-arg BASE_IMAGE_NAME=docker-linuxserver-ubuntu-fips --build-arg BASE_IMAGE_TAG=ubuntu-fips --tag ${FIPS_REPOSITORY_URI}:${COMMIT_HASH_SHORT} --tag ${FIPS_REPOSITORY_URI}:${BRANCH_NAME} .
17+
- docker build --build-arg ECR_ACCOUNT_ID=${ECR_ACCOUNT_ID} --tag ${FIPS_REPOSITORY_URI}:${COMMIT_HASH_SHORT} --tag ${FIPS_REPOSITORY_URI}:${BRANCH_NAME} .
1818
- docker image push --all-tags ${FIPS_REPOSITORY_URI}
1919
post_build:
2020
commands:

buildspec/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ phases:
1313
- PATCH_TAG=${TAG_NAME#"v"}
1414
- MINOR_TAG=${PATCH_TAG%.*}
1515
- MAJOR_TAG=${MINOR_TAG%.*}
16-
- docker build --build-arg ECR_ACCOUNT_ID=${ECR_ACCOUNT_ID} --build-arg ECR_REGION=${ECR_REGION} --build-arg BASE_IMAGE_NAME=docker-linuxserver-ubuntu-fips --build-arg BASE_IMAGE_TAG=ubuntu-fips -t ${FIPS_REPOSITORY_URI}:${PATCH_TAG} -t ${FIPS_REPOSITORY_URI}:${MINOR_TAG} -t ${FIPS_REPOSITORY_URI}:${MAJOR_TAG} .
16+
- docker build --build-arg ECR_ACCOUNT_ID=${ECR_ACCOUNT_ID} -t ${FIPS_REPOSITORY_URI}:${PATCH_TAG} -t ${FIPS_REPOSITORY_URI}:${MINOR_TAG} -t ${FIPS_REPOSITORY_URI}:${MAJOR_TAG} .
1717
- docker image push --all-tags ${FIPS_REPOSITORY_URI}
1818
post_build:
1919
commands:

0 commit comments

Comments
 (0)