Skip to content

Commit 6615aa5

Browse files
authored
Update Makefile (#173)
1 parent b789a03 commit 6615aa5

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

Makefile

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
22
USER=$(shell whoami)
33

44
STAGING_URL="https://docs-mongodborg-staging.corp.mongodb.com"
5-
STAGING_BUCKET=docs-mongodb-org-stg
5+
STAGING_BUCKET=docs-mongodb-org-prd-staging
66

77
PRODUCTION_BUCKET=docs-mongodb-org-prd
88
PRODUCTION_URL=https://docs.mongodb.com/guides
@@ -11,6 +11,13 @@ PROJECT=guides
1111

1212
DRIVERS_PATH=source/driver-examples
1313

14+
DOTCOM_STAGING_URL="https://mongodbcom-cdn.website.staging.corp.mongodb.com"
15+
DOTCOM_STAGING_BUCKET=docs-mongodb-org-dotcomstg
16+
DOTCOM_PRODUCTION_URL="https://mongodb.com"
17+
DOTCOM_PRODUCTION_BUCKET=docs-mongodb-org-dotcomprd
18+
DOTCOM_PREFIX=docs-qa/guides
19+
DOTCOM_STGPREFIX=docs-qa/guides
20+
1421
.PHONY: examples help html publish stage deploy deploy-search-index
1522

1623
help: ## Show this help message
@@ -32,11 +39,22 @@ stage: ## Host online for review
3239
mut-publish build/${GIT_BRANCH}/html ${STAGING_BUCKET} --prefix=${PROJECT} --stage ${ARGS}
3340
@echo "Hosted at ${STAGING_URL}/${PROJECT}/${USER}/${GIT_BRANCH}/index.html"
3441

42+
43+
mut-publish build/${GIT_BRANCH}/html ${DOTCOM_STAGING_BUCKET} --prefix=${DOTCOM_STGPREFIX} --stage ${ARGS}
44+
@echo "Hosted at ${DOTCOM_STAGING_URL}/${DOTCOM_STGPREFIX}/${USER}/${GIT_BRANCH}/index.html"
45+
46+
47+
3548
deploy: build/public ## Deploy to the production bucket
3649
mut-publish build/public ${PRODUCTION_BUCKET} --prefix=${PROJECT} --deploy --all-subdirectories ${ARGS}
3750

3851
@echo "Hosted at ${PRODUCTION_URL}/index.html"
3952

53+
mut-publish build/public ${DOTCOM_PRODUCTION_BUCKET} --prefix=${DOTCOM_PREFIX} --deploy --all-subdirectories ${ARGS}
54+
55+
@echo "Hosted at ${DOTCOM_PRODUCTION_URL}/${DOTCOM_PREFIX}/index.html"
56+
57+
4058
$(MAKE) deploy-search-index
4159

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

0 commit comments

Comments
 (0)