Skip to content

Commit a09ada1

Browse files
authored
Fix BUILD_VERSION=2 publish steps (#1019)
1 parent 6a73ab8 commit a09ada1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

buildspec_publish_dockerhub.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ phases:
1313
- ./scripts/pipeline/sync-test-images.sh --tag
1414

1515
# Push the image to dockerhub
16-
- './scripts/publish.sh cicd-publish dockerhub'
16+
- BUILD_VERSION=2 ./scripts/publish.sh cicd-publish dockerhub
1717
- BUILD_VERSION=3 ./scripts/publish.sh cicd-publish dockerhub
1818

1919
# Pull the image from dockerhub and verify
20-
- './scripts/publish.sh cicd-verify dockerhub'
20+
- BUILD_VERSION=2 ./scripts/publish.sh cicd-verify dockerhub
2121
- BUILD_VERSION=3 ./scripts/publish.sh cicd-verify dockerhub
2222
artifacts:
2323
files:

buildspec_publish_ecr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ phases:
2222
fi
2323
2424
# Push the image to ECR
25-
- './scripts/publish.sh cicd-publish ${REGION_TO_PUSH}'
25+
- BUILD_VERSION=2 ./scripts/publish.sh cicd-publish ${REGION_TO_PUSH}
2626
- BUILD_VERSION=3 ./scripts/publish.sh cicd-publish ${REGION_TO_PUSH}
2727

2828
# Nullify the temporary credentials for the assumed role to publish
@@ -42,7 +42,7 @@ phases:
4242
- export AWS_SESSION_TOKEN=`echo $CREDS | jq -r .Credentials.SessionToken`
4343

4444
# Verify from the verification account
45-
- './scripts/publish.sh cicd-verify ${REGION_TO_PUSH}'
45+
- BUILD_VERSION=2 ./scripts/publish.sh cicd-verify ${REGION_TO_PUSH}
4646
- BUILD_VERSION=3 ./scripts/publish.sh cicd-verify ${REGION_TO_PUSH}
4747
artifacts:
4848
files:

buildspec_publish_public_ecr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ phases:
2828
fi
2929
3030
# Push the image to Public ECR
31-
- './scripts/publish.sh cicd-publish public-ecr'
31+
- BUILD_VERSION=2 ./scripts/publish.sh cicd-publish public-ecr
3232
- BUILD_VERSION=3 ./scripts/publish.sh cicd-publish public-ecr
3333

3434
# Nullify the temporary credentials for the assumed role to publish
@@ -40,7 +40,7 @@ phases:
4040
fi
4141
4242
# Pull the image from Public ECR and verify
43-
- './scripts/publish.sh cicd-verify public-ecr'
43+
- BUILD_VERSION=2 ./scripts/publish.sh cicd-verify public-ecr
4444
- BUILD_VERSION=3 ./scripts/publish.sh cicd-verify public-ecr
4545
artifacts:
4646
files:

buildspec_publish_ssm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ phases:
1111
commands:
1212
# Enforce STS regional endpoints
1313
- export AWS_STS_REGIONAL_ENDPOINTS=regional
14-
- './scripts/publish.sh cicd-publish-ssm ${AWS_REGION}'
14+
- BUILD_VERSION=2 ./scripts/publish.sh cicd-publish-ssm ${AWS_REGION}
1515
- BUILD_VERSION=3 ./scripts/publish.sh cicd-publish-ssm ${AWS_REGION}
1616

1717
# Assume role to verify, get the credentials, and set them as environment variables.
@@ -22,7 +22,7 @@ phases:
2222
- export AWS_SECRET_ACCESS_KEY=`echo $CREDS | jq -r .Credentials.SecretAccessKey`
2323
- export AWS_SESSION_TOKEN=`echo $CREDS | jq -r .Credentials.SessionToken`
2424

25-
- './scripts/publish.sh cicd-verify-ssm ${AWS_REGION}'
25+
- BUILD_VERSION=2 ./scripts/publish.sh cicd-verify-ssm ${AWS_REGION}
2626
- BUILD_VERSION=3 ./scripts/publish.sh cicd-verify-ssm ${AWS_REGION}
2727
artifacts:
2828
files:

0 commit comments

Comments
 (0)