Skip to content

Commit 4e42b22

Browse files
Update makefile staging bucket and parallel deploys.
1 parent 074f025 commit 4e42b22

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

Makefile

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@ GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
22
USER=`whoami`
33
STAGING_URL="https://docs-mongodborg-staging.corp.mongodb.com"
44
PRODUCTION_URL="https://docs.mongodb.com"
5-
STAGING_BUCKET=docs-mongodb-org-stg
5+
STAGING_BUCKET=docs-mongodb-org-prd-staging
66
PRODUCTION_BUCKET=docs-mongodb-org-prd
77

88
# "PROJECT" currently exists to support having multiple projects
99
# within one bucket. For the manual it is empty.
1010
PROJECT=
11+
DOTCOM_STAGING_URL="https://mongodbcom-cdn.website.staging.corp.mongodb.com"
12+
DOTCOM_STAGING_BUCKET=docs-mongodb-org-dotcomstg
13+
DOTCOM_PRODUCTION_URL="https://mongodb.com"
14+
DOTCOM_PRODUCTION_BUCKET=docs-mongodb-org-dotcomprd
15+
DOTCOM_PREFIX=docs-qa
16+
DOTCOM_STGPREFIX=docs-qa
17+
18+
1119

1220
DRIVERS_PATH=source/driver-examples
1321

@@ -54,6 +62,13 @@ stage: ## Host online for review
5462
mut-publish build/${GIT_BRANCH}/html ${STAGING_BUCKET} --prefix=${PROJECT} --stage ${ARGS}
5563
@echo "Hosted at ${STAGING_URL}/${USER}/${GIT_BRANCH}/index.html"
5664

65+
66+
mut-publish build/${GIT_BRANCH}/html ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --stage ${ARGS}
67+
@echo "Hosted at ${DOTCOM_STAGING_URL}/${DOTCOM_STGPREFIX}/${USER}/${GIT_BRANCH}/index.html"
68+
69+
70+
71+
5772
# - Enter build/public/<branch>, as well as any symbolic links pointing
5873
# to it, and recurse over each file <basename>/<filename>.
5974
# * Upload each to the S3 bucket under <project>/<basename>/<filename>.
@@ -73,6 +88,10 @@ deploy: build/public ## Deploy to the production bucket
7388

7489
@echo "Hosted at ${PRODUCTION_URL}/index.html"
7590

91+
mut-publish build/public ${DOTCOM_PRODUCTION_BUCKET} --prefix=${DOTCOM_PREFIX} --deploy --redirect-prefix='v[0-9]\.[0-9]' --redirect-prefix='manual' --redirect-prefix='master' ${ARGS}
92+
93+
@echo "Hosted at ${DOTCOM_PRODUCTION_URL}/${DOTCOM_PREFIX}/index.html"
94+
7695
$(MAKE) deploy-search-index
7796

7897
deploy-search-index: ## Update the search index for this branch

0 commit comments

Comments
 (0)