Fixing invalidation ID for deployments

This commit is contained in:
Jeff Avallone 2018-06-06 01:33:31 -04:00
parent 10196afec5
commit 6c934bcb0f

View File

@ -84,7 +84,7 @@ Promise.all([bucketContents, uploadDetails]).then(([bucket, upload]) => {
return cloudFront.createInvalidation({ return cloudFront.createInvalidation({
DistributionId: config.cloudFrontId, DistributionId: config.cloudFrontId,
InvalidationBatch: { InvalidationBatch: {
CallerReference: `circleci-deploy-${ process.env.CIRCLE_BRANCH }-${ process.env.CIRCLE_BUILD_NUM }-${ process.env.CIRCLE_SHA1 }`, CallerReference: `deploy-${ process.env.CI_COMMIT_REF_SLUG }-${ process.env.CI_COMMIT_SHA }`,
Paths: { Paths: {
Quantity: 1, Quantity: 1,
Items: [ Items: [