Fixing invalidation ID for deployments

This commit is contained in:
Jeff Avallone 2018-06-06 01:33:31 -04:00
parent 10196afec5
commit 6c934bcb0f
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ Promise.all([bucketContents, uploadDetails]).then(([bucket, upload]) => {
return cloudFront.createInvalidation({
DistributionId: config.cloudFrontId,
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: {
Quantity: 1,
Items: [