Fixing invalidation ID for deployments
This commit is contained in:
parent
10196afec5
commit
6c934bcb0f
@ -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: [
|
||||||
|
Loading…
Reference in New Issue
Block a user