Skip to content

Commit ad32bac

Browse files
Deployment updates (#986)
This updates deployment locations to remove the -next suffix and prep for the V3 release. Until corresponding infrastructure changes are made changes merged to main will not be visible in the current beta as the staging deployment location has changed.
1 parent c02b6e3 commit ad32bac

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ _steps:
3232
install_aws_cli: &install_aws_cli
3333
run: sudo apt-get update && sudo apt-get install awscli
3434
install_dependencies: &install_dependencies
35-
run: npm ci --cache .npm-cache && sudo npm config set @microbit-foundation:registry https://npm.pkg.github.com/microbit-foundation && sudo npm i -g @microbit-foundation/[email protected] @microbit-foundation/website-deploy-aws-config@0.4.2 @microbit-foundation/circleci-npm-package-versioner@1
35+
run: npm ci --cache .npm-cache && sudo npm config set @microbit-foundation:registry https://npm.pkg.github.com/microbit-foundation && sudo npm i -g @microbit-foundation/[email protected] @microbit-foundation/website-deploy-aws-config@0.5.0-dev.94 @microbit-foundation/circleci-npm-package-versioner@1
3636
install_theme: &install_theme
3737
run: npm config set @microbit-foundation:registry https://npm.pkg.github.com/microbit-foundation && npm install --no-save @microbit-foundation/[email protected]
3838
update_version: &update_version

bin/public-url.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,5 @@
66
*
77
* SPDX-License-Identifier: MIT
88
*/
9-
const {
10-
createDeploymentDetailsWithReviewPrefixes,
11-
} = require("@microbit-foundation/website-deploy-aws-config");
12-
13-
const {
14-
s3Config: { bucketPrefix },
15-
} = createDeploymentDetailsWithReviewPrefixes();
9+
const { bucketPrefix } = require("../deployment");
1610
console.log(`/${bucketPrefix}/`);

deployment.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,24 @@
44
* SPDX-License-Identifier: MIT
55
*/
66
const {
7-
createDeploymentDetailsWithReviewPrefixes,
7+
createDeploymentDetailsFromOptions,
88
} = require("@microbit-foundation/website-deploy-aws-config");
99

10-
const { s3Config } = createDeploymentDetailsWithReviewPrefixes();
10+
const { s3Config } = createDeploymentDetailsFromOptions({
11+
production: {
12+
bucket: "python-editor-v3.microbit.org",
13+
mode: "major",
14+
allowPrerelease: true,
15+
},
16+
staging: {
17+
bucket: "stage-python-editor-v3.microbit.org",
18+
prefix: "v/beta",
19+
},
20+
review: {
21+
bucket: "review-python-editor-v3.microbit.org",
22+
mode: "branch-prefix",
23+
},
24+
});
1125
module.exports = {
1226
...s3Config,
1327
region: "eu-west-1",

0 commit comments

Comments
 (0)