Skip to content

Commit

Permalink
chore: add bueno to deploy config (#4429)
Browse files Browse the repository at this point in the history
This PR will add bueno to the list of resources that get deployed on the
CDN.

https://coveord.atlassian.net/browse/KIT-3552
  • Loading branch information
fpbrault authored Sep 17, 2024
1 parent 47debe7 commit a18cb02
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .deployment.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,39 @@
}
},
"ordered_phases": [
{
"id": "deploy-bueno-patch-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/bueno/v$[BUENO_PATCH_VERSION]",
"source": "packages/bueno/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-bueno-minor-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/bueno/v$[BUENO_MINOR_VERSION]",
"source": "packages/bueno/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-bueno-major-to-s3-version",
"s3": {
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/bueno/v$[BUENO_MAJOR_VERSION]",
"source": "packages/bueno/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-headless-patch-to-s3-version",
"s3": {
Expand Down
5 changes: 5 additions & 0 deletions scripts/deploy/execute-deployment-pipeline.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import atomicHostedPageJson from '../../packages/atomic-hosted-page/package.json
import atomicReactJson from '../../packages/atomic-react/package.json' assert {type: 'json'};
import atomicJson from '../../packages/atomic/package.json' assert {type: 'json'};
import headlessJson from '../../packages/headless/package.json' assert {type: 'json'};
import buenoJson from '../../packages/bueno/package.json' assert {type: 'json'};

const releaseCommit = execSync('git rev-parse HEAD').toString().trim();

Expand All @@ -16,12 +17,16 @@ function getVersionComposants(version) {
};
}

const bueno = getVersionComposants(buenoJson.version);
const headless = getVersionComposants(headlessJson.version);
const atomic = getVersionComposants(atomicJson.version);
const atomicReact = getVersionComposants(atomicReactJson.version);
const atomicHostedPage = getVersionComposants(atomicHostedPageJson.version);
console.log(execSync(`
deployment-package package create --with-deploy \
--resolve BUENO_MAJOR_VERSION=${bueno.major} \
--resolve BUENO_MINOR_VERSION=${bueno.major}.${bueno.minor} \
--resolve BUENO_PATCH_VERSION=${bueno.major}.${bueno.minor}.${bueno.patch} \
--resolve HEADLESS_MAJOR_VERSION=${headless.major} \
--resolve HEADLESS_MINOR_VERSION=${headless.major}.${headless.minor} \
--resolve HEADLESS_PATCH_VERSION=${headless.major}.${headless.minor}.${headless.patch} \
Expand Down
2 changes: 2 additions & 0 deletions scripts/deploy/invalidate-cloudfront.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ async function main() {
`/atomic/v${getMajorVersion('atomic')}/*`,
'/headless/latest/*',
`/headless/v${getMajorVersion('headless')}/*`,
'/bueno/latest/*',
`/bueno/v${getMajorVersion('bueno')}/*`,
];

const invalidationRequest = cloudfront.createInvalidation({
Expand Down

0 comments on commit a18cb02

Please sign in to comment.